K
krw
- Jan 1, 1970
- 0
"I allways buffer them, then write a character from the buffer on a
timer interrupt."
Neat idea, I'll try that some time... at least in microcontrollers that have
enough RAM to keep a "framebuffer" around (I've used some that didn't!).
I start a loop on timer interrupt and check all status flags, then
move on if nothing interesting is happening. Usually the interrupt
loop just takes care of the hardware and posts another software flag
to the main loop. The idea is to spend as little time in the
interrupt as possible, or less. ;-)