Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

uart 1,2,3 order number receive problem.

Status
Not open for further replies.

lignin

Junior Member level 2
Junior Member level 2
Joined
Apr 27, 2013
Messages
22
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,436
I am trying to receive 1,2,3 order number from uart with single receive interrupt. But I dont know how can ı do. I mean user can send me 1,2,3 order number like 1,10,100, and ı must receive that number in receive interrupt. How can ı recognize that user send me 1 or 2 or 3 order number ? So how can ı write this code ?
sorry about my english. I hope I told my problem properly.
 

This is a message framing problem. Ideally the start and end of a message (one number) should be unequivocally detectable. In this simple case, you need a kind of separator between numbers. You're apparently assuming ASCII coded digits, so any non-numerical character can serve as a separator, e.g. space, carriage return, comma.
 

thank you FvM. I know this method. I tried to find another way. But I understand that, there is no way. thank you again.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top