Hi, I am new learner of PIC microcontroller. I am using microchip explore 8 board with PIC16f1719. I wrote a simple program try to send string through RS232 to computer but doesn't work. I have try with other demo program and confirmed the PIC could actually send data to the PC. I guess might be something wrong with the code? Would anyone help me out? Thanks

This is why the standard 'first test' should always be to simply flash an LED. Only once you have this flashing _at the right rate_, can you move on to trying serial.

Oh I see. Yes, the clock setting was incorrect. I just randomly put a clock time on it since I saw some sample code online was just like that, but i have no clue how I should set it. Thanks for your help.