This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC1310: Using slow clock in Sensor Controller (time between interrupts)

Part Number: CC1310
Other Parts Discussed in Thread: DRV5012, CC1312R

Hello!

I use CC1310 + DRV5012 to count rotation speed. I need to catch rotation speed changing. Rotation speed can be from 0.1 Hz to 5 Hz.

I used this initialization code in Sensor Controller:

gpioEnableInputBuf (AUXIO_I_HALL_IN);

evhSetupGpioTrigger(0, AUXIO_I_HALL_IN, 1, EVH_GPIO_TRIG_ON_EDGE);

So i get interrupt every rotation and i need to calc time between interrupts (between current and previous Event Handler A() calls)

How can i get access to slow clock from Sensor Controller to calc this time? I do not want to wake up System CPU on every rotation (to save battery).

I know about rtcmecInit(), using it i can only calc average rotation speed, but i need to catch rotation speed changing. So i need to know time between every interrupt.