| ??? 05/10/02 19:03 Read: times |
#22841 - RE: Timer and Char Input |
If you wait more than 1 character period between tests of RI, you will lose characters. Move the serial basics (get character, store in ring buffer, set flag if desired, get out) to an ISR where they belong. Testing serial in the main loop has always been and will always be a bad idea. It depends on the other parts of the main loop not growing slow i.e. something depeends - not on the function but - on the implementation of other processes which is very bad practice.
Have fun, Erik |
| Topic | Author | Date |
| Timer and Char Input | 01/01/70 00:00 | |
| RE: Timer and Char Input | 01/01/70 00:00 | |
| RE: Timer and Char Input | 01/01/70 00:00 | |
| RE: Timer and Char Input | 01/01/70 00:00 | |
| RE: Timer and Char Input | 01/01/70 00:00 | |
| RE: Timer and Char Input | 01/01/70 00:00 | |
| RE: Timer and Char Input | 01/01/70 00:00 | |
| RE: Timer and Char Input | 01/01/70 00:00 | |
| RE: Timer and Char Input | 01/01/70 00:00 | |
RE: Timer and Char Input | 01/01/70 00:00 |



