Showing posts with label PIC UART code. Show all posts
Showing posts with label PIC UART code. Show all posts

Tuesday, 3 December 2013

PIC16F628A UART code + Proteus simulation


This post answers the question, "How to use interrupt based UART in PIC16F628A" ?

Also, using PIC16 simulator (Proteus) you can verify this UART code and change it according to your needs. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the 'Downloads' section at the bottom of this page.


This PIC16F628A microcontroller tutorial provides the interrupt based UART functions which you can easily understand and use. After reading this page you can easily use PIC16F628A serial UART interface.



It is assumed that you know how to blink an LED with PIC16F628A microcontroller. If you don't then please read this page first, before proceeding with this article.


The following diagram (made in Proteus) shows the PIC microcontroller circuit diagram.



Figure 1.   PIC16F628A UART circuit