Your MAX232 is probably defective.
Try the following with PortC.6 of the PIC directly connected to Pin 2 of the PCs DB9 (and GND connected to Pin 5 of DB9)
' 4800 Baud 8N1
DEFINE OSC 4
loop:
Serout2 PORTC.6,$40BC,["Hello",10,13]
Pause 500
Serout2 PORTC.6,$40BC,["World",10,13,10,13]
Pause 500
Goto loop
End
The Mode is marked RED
You might also want to try a different Pin (i.e. RB4) and try to add a 4k7 pullup.
There is one thing I have found a while ago:
If you have tried the HSEROUT statement your PIC might behave strange when using SEROUT or SEROUT2.
If there is a HSEROUT statement somewhere in the Code (even at a position normal program execution never gets to) causes that the PICs internal USART remains connected to the Port Pin.
To solve this erase your PIC and start coding at a new (blank) project.
Bookmarks