| ??? 12/26/07 21:12 Read: times |
#148745 - Worst case, instead of average Responding to: ???'s previous message |
Firstly, my comment you referred discusses about Oliver's single UART byte (single ADC result) buffering. Single byte buffering has no difference with the direct polling on the main loop. These two method have the same 'life time' of the variables. On the single byte buffering, rather, the interrupt latency reduces the effective execution time of the firmware. Then, I recommended multi-byte buffering (or process) in the ISR.
Secondly, the timing should be always designed according to the worst case. There is no room to consider on average. Circular buffers extend the minumum character separation time to those multiplied by the buffer size. This span is compared with the maximum main loop time. Tsuneo |



