??? 08/11/06 07:49 Read: times |
#122026 - NOOOOOOOOO Responding to: ???'s previous message |
Ivan_law80 said:
The timer approach which does not use interrupt would solve the problem of interrupt latency. However, since my firmware has multiple tasks to perform besides generating a constant square wave, there is no way to wait in the endless loop.
No, of course, there is no reason to stay in an endless loop. If you set autoreload mode, it will work regardless of what does the rest of software. Of course, don't enable the TImer0 interrupt! I was talking about a test/trial piece of software, which you can stitch together in 5 minutes and see if - and how - it works. Generally, it is not the best approach to try a new feature of the hardware on a full and complex system. You should write "snippets" to try a new feature, and then try to integrate it into your long and complex program. Jan Waclawek |