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.


