Tom,
this is a working piece of code for direct connection (no MAX232)
loop:
Serout2 PORTC.6,$40BC,["Hello",10,13]
Pause 500
Serout2 PORTC.6,$40BC,["World",10,13,10,13]
Pause 500
Goto loop
End
this is a working piece of code for use with MAX232
loop:
Serout2 PORTC.6,$BC,["Hello",10,13]
Pause 500
Serout2 PORTC.6,$BC,["World",10,13,10,13]
Pause 500
Goto loop
End
both the versions have been tested on a 16F876
Are your settings in hyperterm correct?
There is one more thing:
If you are using your Loader cable for connection with Hyperterm it wont work.
Hyperterm sets Pin4 at the COM Port to +12V which causes a LOW-Level at the MCUs MCLR Pin.
Your MCU will not start as long as Hyperterm is connected




Bookmarks