The truth is I couldn't figure out how to work the RS232 to USB stuff. So, I decided to take it slowly and try to figure out how to do UART first!
Here is the code: uart_practise.c
Although this was compiled using the C18 compiler, it can easily be modified to fit HI-TECH's PICC.
You will need some sort of terminal program to see the UART output. Also, if you don't have a serial port on your computer (as most people don't) you need a USB-Serial cable. Once you have everything hardware set up you need to set up the serial port as follows.
- Baud rate: 9600 bits/s
- Data bits: 8
- Parity: None
- Stop bits: 1
- Flow Control: None
For more detailed directions and a circuit diagram visit: www.renomania.org/projects/uart.html