Beefer3
New Member
Hey everyone
I am having some trouble with RS232 communication with a 16F84A. Can someone shed some light on this?
Here is my code:
DEVICE 16F84A
INCLUDE "MODEDEFS.BAS"
PORTA = %00011
SWITCH:
PORTA.2 = 0
IF PORTA.2 = 1 THEN
SEROUT PORTA.3 , 16780 , [ "HELLO WORLD" , 13 ]
ELSE
GOTO SWITCH
ENDIF
END
and this is what I get in return on the terminal program
«…ýQa[gwå
I am using this schematic. Hopefully this is right.
Can anyone help?
I am having some trouble with RS232 communication with a 16F84A. Can someone shed some light on this?
Here is my code:
DEVICE 16F84A
INCLUDE "MODEDEFS.BAS"
PORTA = %00011
SWITCH:
PORTA.2 = 0
IF PORTA.2 = 1 THEN
SEROUT PORTA.3 , 16780 , [ "HELLO WORLD" , 13 ]
ELSE
GOTO SWITCH
ENDIF
END
and this is what I get in return on the terminal program
«…ýQa[gwå
I am using this schematic. Hopefully this is right.
Can anyone help?