SPI Hal - Waiting to MISO line to be released
Posted: Thu May 12, 2022 1:08 pm
Hi Team,
I am trying to implement a driver using SPI for the ADBMS1818 chip which is used to measure the Cell voltages of battery cells. To start measuring the voltage using the ADC . I have to do a start poll operation (PLADC). After which I shall use another command to read the ADC values (say for eg : RDCVA).
When I ask the chip to start measuring ( PLADC) I have to wait for a specific amount of time depending on the number of cells being measured. The operation is shown in the image attached.
My doubt is with PLADC command. Is there a way to know when the request for conversion has been done based on the SDO line activity? I currently use spiStartExchange. Can `end_cb` in the SPI device descriptor be used for this purpose ?
Regards,
Akshai
I am trying to implement a driver using SPI for the ADBMS1818 chip which is used to measure the Cell voltages of battery cells. To start measuring the voltage using the ADC . I have to do a start poll operation (PLADC). After which I shall use another command to read the ADC values (say for eg : RDCVA).
When I ask the chip to start measuring ( PLADC) I have to wait for a specific amount of time depending on the number of cells being measured. The operation is shown in the image attached.
My doubt is with PLADC command. Is there a way to know when the request for conversion has been done based on the SDO line activity? I currently use spiStartExchange. Can `end_cb` in the SPI device descriptor be used for this purpose ?
Regards,
Akshai