MOD54415 hires timer
Posted: Fri Mar 08, 2013 10:32 am
Hey all,
I'm trying to set up the HIRES timer to trigger an event every tenth of a second. I dug through the example files and looked at the hires timer demo which takes a value from the serial buffer and puts it in the timer like this:
iprintf( "Input number of seconds (floating point) between LED increments:" );
gets( Buffer );
timer->init(strtod( Buffer, NULL ) );
So if I want this timer to fire off my ISR every 10th of a second, can I just replace "buffer" in the timer->init line with a floating point number?
If not, what is a good way to set up a DMA timer without screwing up the uCOS?
Sorry for the dumb question, still learning C++ on the fly.... Thanks!!
Tony
I'm trying to set up the HIRES timer to trigger an event every tenth of a second. I dug through the example files and looked at the hires timer demo which takes a value from the serial buffer and puts it in the timer like this:
iprintf( "Input number of seconds (floating point) between LED increments:" );
gets( Buffer );
timer->init(strtod( Buffer, NULL ) );
So if I want this timer to fire off my ISR every 10th of a second, can I just replace "buffer" in the timer->init line with a floating point number?
If not, what is a good way to set up a DMA timer without screwing up the uCOS?
Sorry for the dumb question, still learning C++ on the fly.... Thanks!!
Tony