Other Parts Discussed in Thread: CC1310
Hi, is there a tool or formula for calculating the delay period based on the MCU, I think the CC1310 is 24Mhz x 2 = 48Mhz CPU clock but I'm not sure. I want to generate a 833 micro/sec and 1sec delay period. Thanks, Steve.
Web page example below:
// Generate timer event after 100 us
timer0Start(TIMER0_MODE_SINGLE, 2400, 0);
gpioSetOutput(AUXIO_O_LED);
timer0Start
Prototype: timer0Start(#mode, mant, #exp)
Sets up AUX Timer 0 to generate events, either one-shot after the specified delay or repeatedly at the specified interval.
Parameter value(s)
- #mode - Select single event or periodical events (TIMER0_MODE_XYZ)
- mant - Delay/interval mantissa value (2-65535). Resulting delay/interval is mant * 2^exp [Sensor Controller clock periods].
- #exp - Delay/interval exponent value (0-15). Resulting delay/interval is mant * 2^exp [Sensor Controller clock periods].