|
Re: Interrupt limitations?
[quote=randomperson]which reminds me of another pet peeve about the controller..
The whole thing where we have to send data every X ms otherwise the controller resets.. [quote]
Thats the great thing about interrupts. You can set up a timer triggered interrupt to send/recieve data, so that you don;t have to worry about time limits. It works like this. You keep two copies of the data to be sent. A timer is set up to send/ recieve the data every x ms. One copy is sortof a working copy, which is not ready to be sent and the other is a copy which is ready to be sent. when you are done with the working copy, you disable interrupts, copy the working copy to the other one and re-enable interrupts. A similar system is used on computer video cards.
__________________
1139 Alumni
|