2011-03-24 06:35 AM
shortage of timers! pls help.
2011-05-17 05:29 AM
If you used the standard naming, library, startup code
void SysTick_Handler(void) { } Check your vector table if you're not clear on the right name. To change priority you have to remember it is a system handler, and not a IRQ, and use the appropriate NVIC routines. I'm not sure it can magically arrive there from any other source, so checking if is actually a SysTick seems totally pointless. Frankly it sounds like you should have a software timer, at some suitable granularity, and use that to dispatch your assorted timeout's, periodics, callbacks, etc. Use the HW timers/outputs when you need to actually generate signals that need more rigorous placement. Look at how your average RTOS implements such software timers. Use the library, sure you can program the part at a register level, but you'll waste hours screwing around with simple problems. It's a productivity issue.