??? 03/06/06 15:21 Read: times |
#111372 - This may not work well ... Responding to: ???'s previous message |
Unless you KNOW for certain that each and every time you receive serial data it will be in packets of three bytes, your software FIFO scheme will fall apart.
If your MCU is not fast enough to make the I/O character-by-character, I figure you'd best use a faster MCU. What's the point of arguing about an interrupt service routine that won't work in most cases? Wasn't this supposed to be an "educational" exercise? Those should be general in nature and have "real-world" application. If you don't specify circumstances under which a given routine should work, it won't help anyone to consider it. RE |
Topic | Author | Date |
interrupt driven serial: RFC | 01/01/70 00:00 | |
It must be perfect! | 01/01/70 00:00 | |
I don't believe | 01/01/70 00:00 | |
Validation | 01/01/70 00:00 | |
well ... I've looked at it ... | 01/01/70 00:00 | |
request for comment on comment | 01/01/70 00:00 | |
let's take this a little at a time ... | 01/01/70 00:00 | |
OK then give yours | 01/01/70 00:00 | |
Intel Original | 01/01/70 00:00 | |
on byte buffer | 01/01/70 00:00 | |
c version | 01/01/70 00:00 | |
Coloring | 01/01/70 00:00 | |
html syntax colouring | 01/01/70 00:00 | |
to C or not to C | 01/01/70 00:00 | |
yeah but thats the point | 01/01/70 00:00 | |
How true for "real C" | 01/01/70 00:00 | |
excellent idea![]() | 01/01/70 00:00 | |
asm, in the same style | 01/01/70 00:00 | |
This may not work well ... | 01/01/70 00:00 | |
How? | 01/01/70 00:00 |