cancel
Showing results for 
Search instead for 
Did you mean: 

shortage of timers! pls help.

lakshmikantha85
Associate II
Posted on March 24, 2011 at 14:35

shortage of timers! pls help.

1 REPLY 1
Posted on May 17, 2011 at 14:29

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.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..