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
USART DataPacket
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.
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.
I think that I solved the problem and I posted some piece of code.padu wrote:That's only my opinion, but I think that's too high level for a compiler like mP.
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.tyranus wrote:I think that I solved the problem and I posted some piece of code.padu wrote:That's only my opinion, but I think that's too high level for a compiler like mP.
Look Here : http://www.mikroe.com/forum/viewtopic.php?p=12356#12356
If you don't already know, take a look at FSM (finite state machines). I found myself using it a lot for serial communications.