Hello
Dears
I am trying to communicate with HTRC110 using the SPI protocol. But it needs some preliminary work before each SPI send/receive operations. How could I implement this?
For example, first changing the pin function to GPIO, then Make it low -> delay -> high. After this, change the pin function to SPI(MOSI) then send the data.
Is this sequence correct?
Regards,
Ehsan
Hi Ehsan:
For the communication for HTRC110, please follow the Datasheet regarding serial communication.
Every communication between HTRC110 and microcontroller begins with an initialization of the serial interface. The interface initialization condition is a low-to-high transition of the signal DIN while CLK is high.
You may refer to page 7 of https://www.nxp.com.cn/docs/en/data-sheet/037031.pdf for more details.
Regards
Daniel