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.

CC1312PSIP: Maintaining accurate timing in sensor data sampling on TI cc1312PSIP

Part Number: CC1312PSIP


I'm working on an application for the TI cc1312PSIP that utilizes the SensorController component for custom communication within the project. This communication involves functions that receive data bits, analyze them, and send acknowledgements (ACKs).

I am using the Event Handle Code  and  evhSetupGpioTrigger(0, AUXIO_I_RXD, 1, EVH_GPIO_TRIG_ON_EDGE) in order to sample the incoming bits.

During debugging, I observed that bit sampling occurs with precise timing. However, this timing deviates in release mode, potentially due to  sleep behavior (as we suspect).

To prevent sleep from interfering, I implemented the following approaches in the SensorController initialization and exit functions, but neither resolved the issue:

  • pwrRequestAndWaitForActiveMode()
  • pwrRequestAndWaitForLowPowerMode()

As a workaround, I introduced a loop in the application section to keep the CPU awake, which appears to mitigate the timing drift.

While the loop solution functions, I'm seeking a more elegant approach to ensure consistent sampling timing and minimize interrupt latency. Any suggestions or recommendations would be greatly appreciated.