How to read initialization from L9663 data using SPI?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-07 6:39 AM - last edited on ‎2024-02-12 5: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.
- Labels:
-
AutoDevKit Studio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-20 4: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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-21 2:57 AM
Hi. Yes, I have already checked it and format is not compliant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-21 5: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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-18 10:27 PM
Hello, I am a first-year graduate student at Shandong University of Technology. I am currently using l9663. Can you provide me with some example programs? Even just a function for writing data to the l9663 register will do. I want to test whether there is a problem with my board.If possible, I would really appreciate it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-19 7:22 AM
Hi,
The source code for both drivers and demo are present in AutoDevKit www.st.com/autodevkitsw
Read quick start guide here:
Best Regards,
AutoDevKit Team
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-20 12:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-20 4:14 AM
Hi,
you are right.
We do not have PSI5 transceiver software in AutoDevKit.
Best Regards,
AutoDevKit Team
