We typically add a 16×2 Alphanumeric LCD to small embedded systems & projects to enhance the user experience and UI of the device/project. Component Name Buy On 1 PIC16F877AĪdd 1 BreadBoard Add 1 Alphanumeric LCD 16×2 Add 1 Jumper Wires Pack Add Add 1 LM7805 Voltage Regulator (5v) Add 1 8MHz Crystal Oscillator Add 1 PICkit2 or 3 Programmer Add Required Components For This Tutorial Qty.
7 Adding Auxiliary Functions To LCD Driver.1 Required Components For This Tutorial.
How to burn the hex file to PIC MCU using this programmer is described in this article.
USARTWriteLine( "This checks both way serial transfers.") USARTWriteLine( "appear on serial terminal.")
USARTWriteLine( "For example if you type 'a' you will see ") USARTWriteLine( "PIC MCU will return the same character but ") USARTWriteLine( "it will reach the PIC MCU via the serial line") USARTWriteLine( "Type a character on keyboard")
WRITTEN BY: AVINASH GUPTA *******************************************************************************/ #include #include "usart_pic16.h" // Configuration Byte #pragma config FOSC = HS // Oscillator Selection bits (HS oscillator) #pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT disabled) #pragma config PWRTE = OFF // Power-up Timer Enable bit (PWRT disabled) #pragma config BOREN = ON // Brown-out Reset Enable bit (BOR enabled) #pragma config LVP = ON // Low-Voltage (Single-Supply) In-Circuit Serial Programming Enable bit (RB3/PGM pin has PGM function low-voltage programming enabled) #pragma config CPD = OFF // Data EEPROM Memory Code Protection bit (Data EEPROM code protection off) #pragma config WRT = OFF // Flash Program Memory Write Enable bits (Write protection off all program memory may be written to by EECON control) #pragma config CP = OFF // Flash Program Memory Code Protection bit (Code protection off) void main() IF YOU WANT TO USE THEM IN COMMERCIAL APPLICATION PLEASE WRITE TO THE AUTHOR. IT IS INTENDED TO BE USED FOR HOBBY, LEARNING AND EDUCATIONAL PURPOSE ONLY. THE LIBRARY, NOR ANY PART OF IT CAN BE USED IN COMMERCIAL APPLICATIONS. Compiler: Microchip XC8 v1.12 () IDE: Microchip MPLABX MCU: PIC16F877A Frequency: 20MHz NOTICE NO PART OF THIS WORK CAN BE COPIED, DISTRIBUTED OR PUBLISHED WITHOUT A WRITTEN PERMISSION FROM EXTREME ELECTRONICS INDIA.