Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 5th January 2004, 04:39 AM   (permalink)
Default Please help: Receiving RS232 command and output a feedback

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
edmondli is offline  
Old 5th January 2004, 07:34 AM   (permalink)
Default Re: Please help: Receiving RS232 command and output a feedba

Quote:
Originally Posted by edmondli
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
Have a look at my RS232 tutorial at http://www.winpicprog.co.uk/pic_tutorial7.htm, 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.
Nigel Goodwin is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 03:56 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker