Can you Communicate with UART?
Steel
Posts: 313
I would really like to have my·BS2 run a program that communicates with the PC.· Obviously (for program and debug) it has UART capabilities, however, I haven't seen anything in the BS2 instruction set that uses the capabilities.
Is there a way to interface with the UART on the Interpreter Chip?
Is there a way to interface with the UART on the Interpreter Chip?
Comments
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
Http://www.parallax.com
·
MAIN:
SEROUT 16, 16384, [noparse][[/noparse]"Hi",13]
PAUSE 200
GOTO MAIN
will output "Hi" to Hyperterminal from the BS2, every 200 mSecs.
P.S. -- edit 8/16/2005 -- the "16384" baud-mode is incorrect for 9600 baud.
Better:
I9600 CON 84 + 16384
SEROUT 16, I9600, [noparse][[/noparse]"Hi", 13]
This way, you can more easily change your baud rates.
The '84' tells a plain BS2 to send at 9600 baud.· The "+16384" says to use "Inverted" mode -- which is needed if you have a MAX232 circuit in there, which the BS2 does.
Post Edited (allanlane5) : 8/16/2005 12:48:15 PM GMT