Saturday, 26 November 2016

PIC16F877A


Here are some basic examples of pic programming in Hi-tech C with Proteus simulation


  Here you can use any pin for uart communication.go to suart.h and edit the following steps depend on our pins using
#define TxData RB0            /* Map TxData to pin */
#define RxData RB1                /* Map RxData to pin */
#define INIT_PORT TRISB0 = 0    /* set up I/O direction */
#define INIT_PORT1 TRISB2 = 1    /* set up I/O direction */