Other Parts Discussed in Thread: TIMAC, CC2430
Hi all,
I'm new in all of this. I have acquired a CC2430DK and I've downloaded the TIMAC. I'm trying to configure a Timer with a timeout of 27us.
First I did it with osal_start_timerEx() but it only works with milli seconds, and i want to do it with microseconds.
So I'm trying to do it with Hal Timers. First, I've configured the timer in msa_Main.c like this:
HalTimerConfig (HAL_TIMER_0,
HAL_TIMER_MODE_NORMAL,
HAL_TIMER_CHANNEL_SINGLE,
HAL_TIMER_CH_MODE_OVERFLOW,
TRUE,
MSA_Main_TimerCallBack);
And then, when I press Key Down (S3) i've written:
HalTimerStart(HAL_TIMER_0,timeout);
My question is: where I have to write the code when HAL_TIMER_0 expires this timeout?
In hal_timer.c it says that HAL_TIMER_0 is HW_TIMER_3 and there is halProcessTimer3() but i've tried to write it there and it doesn't works properly.
I've also tried in MSA_Main_TimerCallBack() from msa_Main.c, but doesn't works.
Furthemore, i don't understand what CHANNELS mean, (Single, A,B or C). And the difference between Output Compare Mode and Input Compare Mode.
Can anyone help me?
Thank you so much.