PDA

View Full Version : Hser-rx test



nicjo
- 26th November 2006, 09:53
I want to be able to test a variable assigned to Hserin, say 'char' as in Hserin 1000, [char] and test 'char' if it is = "a" (for arguments sake). I would imagine it would be as simple as:

if char ="a" then high porta.1
if char="c" then low porta.1
endif

Though characters are echoed back to the serial communicator, when 'a' is sent the port remains unchanged. Could it be that the configurations options maybe different from that of the PIC.

Thanks

John