Write and Read on HTRC110 using SPI

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Write and Read on HTRC110 using SPI

454 Views
Ehsaaan
Contributor III

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

0 Kudos
1 Reply

417 Views
danielchen
NXP TechSupport
NXP TechSupport

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

 

 

0 Kudos