Hello,
i try to use a PN5180A to emulate a ISO14443A card. I do only need to able to emulate a card with a fixed (not even user defined, just unique) id. As controler i use an esp32, meaning i can not use the nxp library for it and need to implement everything by my own.
As far as i understand the docs and examples, what i need to do is send the following commands:
- RF_OFF
disable rf field - LOAD_RF_CONFIG(0x00, 0x80)
setup ISO14443A mode with 106kbit/s transmitter speed and 106kbit/s receiver speed - WRITE_REGISTER(REG_EMD_CONTROL, 0)
disable EMD - WRITE_REGISTER(REG_IRQ_CLEAR, MASK_IRQ_SET_CLEAR_ALL)
clear all irq - WRITE_REGISTER(REG_IRQ_ENABLE, MASK_IRQ_STATUS_RFON_DET)
enable rfon irq - wait for interrupt
- WRITE_REGISTER_AND_MASK(REG_SYSTEM_CONFIG, MASK_SYSTEM_CONFIG_COMMAND)
abort any running command - WRITE_REGISTER(REG_IRQ_CLEAR, MASK_IRQ_SET_CLEAR_ALL)
clear all irq - WRITE_REGISTER(REG_IRQ_ENABLE, MASK_IRQ_CARD_ACTIVATED)
enable card irq - SWITCH_MODE(MODE_AUTOCOLL, 0x01, 0x01)
enter autocoll mode, use autonomos mode, only enable NFC-A - wait for interrupt
- ?
Problem is the IRQ_CARD_ACTIVATED never happens, i get a GENERAL_ERROR_IRQ and no further info. The datasheet doesn't explain when this irq is fired, neither do i find any other documentation about it.