Timeline for Is it possible to have multiple ISR routines for a single timer in micro controller?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 21, 2013 at 12:52 | comment | added | Ignacio Vazquez-Abrams | @kkrambo: Different timings perhaps, but they all share the same frequency since the timer is for the most part free-running. | |
Oct 21, 2013 at 12:41 | comment | added | kkrambo | At least some MSP430 devices support multiple capture/compare registers within a single Timer block. For example, see the MSP430 Series 5 User Guide. Capture/compare register 0 generates one interrupt and the other capture/compare registers generate another interrupt. Within this other interrupt you can determine which capture/compare register initiated the interrupt and behave appropriately. With a single MSP430 Timer block you can generate multiple (up to seven) periodic interrupts with different frequencies. | |
Aug 13, 2013 at 11:29 | comment | added | John U | The Coldfire we use has a General Purpose Timer which has one "master" timer register that has multiple hardware compare/count interrupts hanging off it, which is sort-of the functionality you are looking for. However, I would just add a one-line mathematical check or static counter to your timer interrupt, allowing you to do some things every time the counter is a modulus of a given number. | |
Aug 12, 2013 at 20:47 | comment | added | Ignacio Vazquez-Abrams | I have never come across any with this capability. | |
Aug 12, 2013 at 7:38 | comment | added | tamil_innov | if possible could you name a few controller,so that i will check to its datasheet | |
Aug 12, 2013 at 4:46 | history | answered | Ignacio Vazquez-Abrams | CC BY-SA 3.0 |