Please help: Receiving RS232 command and output a feedback

Status
Not open for further replies.

edmondli

New Member
Hi folks,
Can anyone help me on this?
I am trying to build a gadget to accept a command and output another command via RS232. The input command may consist of 18 Ascii characters and the output will be consist of 10 Ascii characters.
I am using 16F84 for this purpose but I don't know how to read a series of characters via RS232, then store and check them and determine which command I should output. My program now can receive character at 9600 baud.
Can anyone suggest some readings or sample for me?
Thanks!
Edmond
 
Re: Please help: Receiving RS232 command and output a feedba


Have a look at my RS232 tutorial at , which does all the RS232 parts - all you need to do is read the ASCII bytes into a buffer, then test them. If you look at tutorial9.2 (hex keypad) this stores 4 key presses in a buffer, and checks for the correct code.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…