STW81200 does not answer on MISO line
- July 24, 2024
- 7 replies
- 7897 views
Hi,
Im interfacing STW81200 with SPI without no success. I do have the following questions:
What the SPI mode? Its not clear on the datasheet. It seems that CPOL = 1, and CPHA = 1.
In either way, I have tested the communication with several modes and none of them works.
On the MCU side, which is the one that will act as a master on spi, whats the configuration for the GPIO pin? Im using STM32L412 and I have set the MISO as an alternate function with push pull open drain and this does not work either.
I can confirm that the SPI signal for SCLK and MOSI its working because the data is being pushed out of the pins. Please see the logic analyzer graphs, but MOSI line is not responding.
Im following the datasheet section Example of register programming, its required when programming in SPI to have enabled a reference clock or this can be absent?
Also, when the MCU is configuring for spi, it clear HW_PD, PD_RF_1 pins.
