Hi,
From the captured raw data, it can be seen that if opt3101 sends a signal to MCU for data readiness, but MCU's operation to read opt3101 is blocked (multiple opt3101 data readiness signals may pass through in the middle). After the blocking ended, the MCU read the register of opt3101 again, and a phenomenon similar to 10MHz and 12MHz data exchange occurred.
If the read operation is blocked, pause opt3101 ranging, and restart ranging after the blocking is completed. The first two frames of data after restarting the distance measurement are incorrect, and the subsequent data will be restored to normal.
May I ask the reason for the previous phenomenon?
The data is shown in the following figure,I0 and Q0 are raw data at 10MHz, while I1 and Q1 are raw data at 12MHz.The corresponding register addresses are 3Bh and 3Ch. The determination of 0 and 1 is in the 21st bit of the 08h register. The register addresses corresponding to I and Q are 3Bh and 3Ch.
Please help analyze the reason. Thanks!