View previous topic :: View next topic |
Author |
Message |
Fabri
Joined: 22 Aug 2005 Posts: 275
|
Error on RS232 Comunication |
Posted: Wed Nov 09, 2005 5:01 am |
|
|
Hi everybody,
In my application RS232 stop to receve.
Does the C compiler test for error in comunication, ans solve it, or I have to do that by testing bit of comunication register or other way ?
Thanks, |
|
|
Ttelmah Guest
|
|
Posted: Wed Nov 09, 2005 5:10 am |
|
|
This is controlled by the 'ERRORS' command in the #use RS232 definition. If this is not present, the compiler leaves it up to _you_ to handle errors. If this is present, the compiler adds code to every 'getc', to check for error conditions, and clear them if present.
Best Wishes |
|
|
Fabri
Joined: 22 Aug 2005 Posts: 275
|
|
Posted: Wed Nov 09, 2005 6:34 am |
|
|
Hi,
I never seen it !
Thanks for help. |
|
|
|