Dexter,
So sorry it took me so long to remember this link. I took this:
[FONT=Arial, Helvetica, sans-serif]Q. I want a routine to do a serial port in software, because I’m using a low-end PIC.[/FONT]
[FONT=Arial, Helvetica, sans-serif]Go to directory ‘c:\ht-pic\samples’ and look at files ‘serial.c’ and ‘iserial.c’. The second file receives characters into a buffer in the background, using interrupts. Its almost like the hardware serial port on a high-end PIC.[/FONT]
[FONT=Arial, Helvetica, sans-serif]
[/FONT]
[FONT=Arial, Helvetica, sans-serif]from this page,[/FONT]
[FONT=Arial, Helvetica, sans-serif]
[/FONT]
PIC micro and C - FAQ
[FONT=Arial, Helvetica, sans-serif]
[/FONT]
[FONT=Arial, Helvetica, sans-serif]on this site, which also has some down-loadable projects with a serial port for both PIC 16Fxxx and 18Fxxx parts.[/FONT]
[FONT=Arial, Helvetica, sans-serif]
[/FONT]
[FONT=Arial, Helvetica, sans-serif]
Microchip PIC micros and C - source and sample code
[/FONT]
Hope that is what you are looking for.