Thursday, 24 September 2015

USART ASYNCHRONOUS TRANSMITTER (PIC16F877A)





#include<pic.h>
void main()
{

TRISC=0X80;;
TXSTA=0X24;
RCSTA=0X90;
SPBRG=0X19;

TXREG='A';
while(TXIF==0);
TXIF=0;
while(1);

}

No comments:

Post a Comment