We dončt know your Config Fuse setting, we don't know your OSC value, we don't know how your PIC is connected to your PC.... a bit hard to suggest something
I would suggest to use your PIC and send some Data to your PC (any terminal software). From there you should know if your PIC works properly, case not... check your Hardware, config fuses setting and so on.
HTH
PS: Forget the timeout for now, and add the DEFINEs for HSEROUT/HSERIN , see the manual about that.
Code:
DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
DEFINE HSER_TXSTA 20h ' Enable transmit, BRGH = 0
DEFINE HSER_SPBRG 1 ' 115200 Baud @ 14.745MHz, 0.0%
DEFINE HSER_CLROERR 1 ' Clear overflow automatically
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks