2024-02-07 06:39 AM - last edited on 2024-02-12 05:02 AM by Peter BENSCH
Hello,
I stareted to develop PSI5 interface with L9663. My point is to read initialization data via SPI. If I set DOUT1 as direct data output (CH1_CR1->DOUT1_SE = 0), I am able to measure received data on this pin. But if I set this pin as interrupt (CH1_CR1->DOUT1_SE = 1), then I am not able to read initialization data via SPI (but interrupt is active).
My procedure:
1. set READ_INIT_DATA1 bit in CH1_CR1
2. Enable PSI5 (with requierd settings)
3. Reading initialization data by this command:
After this INITDATA_RDY in SR3 is not set. Is this procedure correct? What I should write to "init_buf_id" and "Register" bits? I tried to make loop for all possible combinations, but there wasn't any data.
Thank you for your response.
2024-05-20 04:10 AM
Hi,
INITDATA_RDY (SR3[2]) not set indicates that no valid init data were captured by the device (initdata buffer is empty).
Did you check if your frame format is compliant with the initdata capture requirements? (20 bits payload: 3 bits Frame control bits, 1 status bit, 16 data bits).
2024-05-21 02:57 AM
Hi. Yes, I have already checked it and format is not compliant.
2024-05-21 05:43 AM
So, I assume that not compliant frame the main motivation of the problem! (That's why you can see initdata on doutx in mode2 operation, but the device cannot capture initdata).