AnsweredAssumed Answered

How to transfer data read from NFC card using SPI slave mode in PN7462AU_ex_phExVCom

Question asked by wei zhang on Mar 23, 2020
Latest reply on Mar 24, 2020 by IvanRuiz

Hello, I am using PN7462 for NFC development. I realized in the routine PN7462AU_ex_phExVCom that the PN7462 reads the data of the NFC card and transmits it to the computer using the USB VCOM serial port. Now I want to use SPI and use the PN7462 as the SPI slave to send data. I tried to add the phhalHif_Transmit () function to the data read from the NFC card and tried to send the data as a slave through SPI, but I found that when the PN7462 received the 0XFF instruction sent by the SPI master, the MISO data line was always high. level. When I delete all the USB VCOM initialization functions and serial port transfer functions in the main program, the NFC data can be read normally, but the MISO of the SPI slave remains high. How do I send data through the SPI slave?Program code, waveform diagram of SPI slave, and project file are added in the attachment.

Looking forward to your reply!

Thanks!

Outcomes