PN5180 has issue with long frames > 255 bytes

cancel
Showing results for 
Search instead for 
Did you mean: 

PN5180 has issue with long frames > 255 bytes

677 Views
michaelpieber
Contributor II

Dear Community,

I started using the PN5180 demo board in a project. Most stuff is working fine so far except for one thing:

The datasheet states the reception buffer has a size of 508 bytes. However, when I try to receive more than 284 bytes the PN5180 seems to stop receiving data at 284 bytes. The Rx-IRQ is set, the number of bytes received is fixed to 0x11C.

Furthermore, for frames with more than 255 bytes the PN5180 seems not checking the CRC (correctly).

According to the EEPROM content  I'm using version 3.4 which is a quite old one - but looking at the change information there was no change on that item.

EEPROM content address 0x10-0x15: 0x04 03 04 03 00 90

Any help is very much appreciated

Best, Michael

pn5180‌

reception_buffer‌

Labels (1)
Tags (2)
3 Replies

429 Views
IvanRuiz
NXP Employee
NXP Employee

Hello,

Which example of the NXP NFC Reader Library is your project based on?

Regards,

Ivan.

0 Kudos

429 Views
michaelpieber
Contributor II

Hello, thanks for your reply!

My project is not based on Reader-Lib, but I directly control the PN5180 via commands and register read/writes. Here the sequence (Pseudo code):

WriteReg (REG_SYSTEM_CONFIG, 0x00000100)
Command CMD_LOAD_RF_CONFIG (RF_CONFIG_TX_CMA_106, RF_CONFIG_RX_CMA_106);
WriteMaskOr (REG_CRC_TX_CONFIG, 0x00000001);
WriteMaskOr (REG_CRC_RX_CONFIG, 0x00000001);

// Clearing Initiator bit and enabling transceive
WriteReg (REG_SYSTEM_CONFIG, 0x00000000);
Sleep(10);
WriteMaskOr (REG_TRANSCEIVER_CONFIG, 0xFFFFFFFE);
WriteReg (REG_SYSTEM_CONFIG, 0x00000003);
WriteReg (REG_IRQ_CLEAR, 0xFFFFFFFF);

// Counterpart is transmitted data in between
Sleep(500);
// Poll RxIRQ
ReadReg (REG_IRQ_STATUS);
// Check length of received data
ReadReg (REG_RX_STATUS);
Command CMD_READ_DATA  

This works well for frames < 256 byte and does not work at all for frames  284bytes. Between 256 and 284 CRC seems not to be checked.

Thanks in advance!

Michael

429 Views
michaelpieber
Contributor II

Hi again to all,

any ideas or solutions?

Thanks, Michael