SWCU185G January 2018 – June 2024 CC1312PSIP , CC1312R , CC1352P , CC1352R , CC2642R , CC2642R-Q1 , CC2652P , CC2652PSIP , CC2652R , CC2652RB , CC2652RSIP , CC2662R-Q1
A capture request signal can be routed from RFCORE to trigger samplestamp capture. The EVENT:I2SSTMPSEL0 register selects the RFCORE signal to be used. Whenever this capture request signal is high:
Also, on the first WCLK edge of each frame, the current value of I2S:STMPXCNT is captured in I2S:STMPXPER, and I2S:STMPXCNT then restarts counting from 0.
Using these values, a fixed-point samplestamp value can be calculated:
I2S:STMPWCNTCAPT0 + (I2S:STMPXCNTCAPT0 / I2S:STMPXPER)
Notice that the value of I2S:STMPXPER will not normally be captured at the same time as the other values. Therefore, I2S:STMPXPER can be less than I2S:STMPXCNTCAPT0.