Hi,
I have PIC16F1827 and I'm using MPLAB IDE which uses Hi-Tech C for my c compiler. I'm having trouble locating simple code to enable serial port and send data out on serial port. I'm not receiving any serial data. If anyone has some concise code examples let me know. I went to the examples in Hi-Tech C and they are really long. I'ved used serial commands before with Freescale and it was only 4 or 5 commands, so I don't see why it needs to be so complicated. Also for some reason the serial portion of the PIC datasheet is very confusing. I was surprised since everything else seemed to be easy to follow.
I have PIC16F1827 and I'm using MPLAB IDE which uses Hi-Tech C for my c compiler. I'm having trouble locating simple code to enable serial port and send data out on serial port. I'm not receiving any serial data. If anyone has some concise code examples let me know. I went to the examples in Hi-Tech C and they are really long. I'ved used serial commands before with Freescale and it was only 4 or 5 commands, so I don't see why it needs to be so complicated. Also for some reason the serial portion of the PIC datasheet is very confusing. I was surprised since everything else seemed to be easy to follow.