Here it is in BoostC format. You should be able to convert to JAL. -------------------------serial.c------------------------ #include void RS232putch(unsigned char ByteVal) { while(!(test_bit(pir1,4))); txreg = ByteVal; } unsigned char RS232getch(void) { while(!(test_bit(pir1,5))); clear_bit(pir1,5); return(rcreg); } unsigned char RS232peekch(void) { if(test_bit(pir1,5)) return(1); return(0); } /* Set up serial port to run at desired baud rate */ void RS232Init(unsigned char BaudRate) { set_bit(trisc,7); // PORTC[RX] is Input clear_bit(trisc,6); // PORTC[TX] is Output spbrg = BaudRate; // Set baud. see header file txsta = 0x24; // Set TXEN and BRGH to 1 rcsta = 0x90; // Set SPEN and CREN to 1 /* movlw (1<