HTML Code:
#include <18F4680.h> #FUSES NOWDT, H4,PUT, NOPROTECT, NODEBUG, BROWNOUT, NOLVP, NOCPD, NOWRT #use delay(clock=40M) #use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8) #include <lcd420.c> #use fast_io (c) //======================== #INT_RDA void Receive_isr() { c=getc(); } ///////////////////////////////////////////// void main() { int8 c; set_tris_c(0x80); ENABLE_INTERRUPTS(INT_RDA); enable_interrupts(global); printf("Start: \n\r"); while(1) { putc(c); } }
Comment