Wednesday, November 28, 2012

serial communication using PIC18f4550

//CCS C compiler
#include <18f4550 .h=".h">
#fuses HS,NOWDT
#use delay(clock=20MHz)
#use rs232(baud=9600,parity=N,xmit=PIN_B1,rcv=PIN_B2,bits=8,STOP=1)

void main()
{

while(TRUE)
{
printf("mahyar");
}