USART DataPacket

Post your requests and ideas on the future development of mikroPascal.
Post Reply
Author
Message
tyranus
Posts: 24
Joined: 23 Aug 2005 18:14
Location: Just behind you!

USART DataPacket

#1 Post by tyranus » 27 Aug 2005 13:30

It would be nice to add some Usart_DataPaket procedure where we can set start_condition, end_condition, start_string, end_string and so on...
THX

Steve
Posts: 233
Joined: 19 Aug 2004 02:33
Location: North Carolina

#2 Post by Steve » 27 Aug 2005 23:09

Hmmm, do you mean something like this?

tyranus
Posts: 24
Joined: 23 Aug 2005 18:14
Location: Just behind you!

#3 Post by tyranus » 28 Aug 2005 18:12

Not exactly.
As I said, user only have to set the start_condition(anydata or string), end_condition(string or packetsize), ignore_case (optional), include_string(optional), start_string, end_string, packet_size and time_out in procedure's fields and then he can read the data without problems.
This is what i have in mind.

padu
Posts: 186
Joined: 01 Oct 2004 07:10
Location: California

#4 Post by padu » 29 Aug 2005 20:04

That's only my opinion, but I think that's too high level for a compiler like mP.

tyranus
Posts: 24
Joined: 23 Aug 2005 18:14
Location: Just behind you!

#5 Post by tyranus » 29 Aug 2005 20:06

padu wrote:That's only my opinion, but I think that's too high level for a compiler like mP.
I think that I solved the problem and I posted some piece of code.
Look Here : http://www.mikroe.com/forum/viewtopic.php?p=12356#12356

padu
Posts: 186
Joined: 01 Oct 2004 07:10
Location: California

#6 Post by padu » 29 Aug 2005 20:27

tyranus wrote:
padu wrote:That's only my opinion, but I think that's too high level for a compiler like mP.
I think that I solved the problem and I posted some piece of code.
Look Here : http://www.mikroe.com/forum/viewtopic.php?p=12356#12356
Good that it is working now. I hate when I get stuck with something.

If you don't already know, take a look at FSM (finite state machines). I found myself using it a lot for serial communications.

Post Reply

Return to “mikroPascal Wish List”