There is no single bit which will enable all the interrupts. So, if you have a main() with only a ''rim'' instruction, no interrupt will be enabled. The interrupt correspoding to each peripheral is enabled by a bit in one of the control registers of the peripheral(like OCIE bit in case of timer output compare). In case you were checking for the timer interrupt on the output compare pin, you need to enable the pin output function by setting the OC1E/OC2E bit in CR2. Hope this helps! [ This message was edited by: dasg on 07-04-2003 15:39 ]
There is no single bit which will enable all the interrupts. So, if you have a main() with only a ''rim'' instruction, no interrupt will be enabled. The interrupt correspoding to each peripheral is enabled by a bit in one of the control registers of the peripheral(like OCIE bit in case of timer output compare). In case you were checking for the timer interrupt on the output compare pin, you need to enable the pin output function by setting the OC1E/OC2E bit in CR2. Hope this helps!
Thanks. The TimerB is responsible for the timing of the OS. So I do not need an output pin for timerB (timerA, too). regards, Ampel PS: Hello Florent. I tried to send an email to you, but without success.
To contact me, click on my name in the members section, and then click on 'sent a private message'....That should work; if not, and if needed, I'll give you my EMAil adress... Cheers! Florent