AnsweredAssumed Answered

PN512 Transceive doesn't start

Question asked by slavko.kocjancic@ev-matrix.com on Jul 13, 2018
Latest reply on Jul 17, 2018 by slavko.kocjancic@ev-matrix.com

Hello...

I trying to convert library for my project but something doesn't work. So I stripped the code to see if fundamental work.

the 1'st example work.

 

Reset(H);_delay_ms(1);
NFC_WriteReg(PNr_TxControlReg, 0x03);
NFC_WriteFifo(32,buff);    //some random data in buffer
NFC_WriteReg(PNr_CommandReg, PNc_Transmit);        

 

Checking if data goes from fifo shows that level goes down and fifo is empty aprox 2.5ms later (valid for 106 kbit)

 

But the example 2 doesn't start transmission. It's near the same just instead Transmit command I issue Transceive command. But fifo doesn't goes down. What I miss?

 

Reset(H);_delay_ms(1);
NFC_WriteReg(PNr_TxControlReg, 0x03);
NFC_WriteFifo(32,buff);    //some random data in buffer
NFC_WriteReg(PNr_CommandReg, PNc_Transceive);        
NFC_WriteReg(PNr_BitFramingReg, 0x80);   

Outcomes