PN5180A: ISO14443A card emulation

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

PN5180A: ISO14443A card emulation

845 Views
andreasvalder
Contributor I

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:

  1. RF_OFF
    disable rf field
  2. LOAD_RF_CONFIG(0x00, 0x80)
    setup ISO14443A mode with 106kbit/s transmitter speed and 106kbit/s receiver speed
  3. WRITE_REGISTER(REG_EMD_CONTROL, 0)
    disable EMD
  4. WRITE_REGISTER(REG_IRQ_CLEAR, MASK_IRQ_SET_CLEAR_ALL)
    clear all irq
  5. WRITE_REGISTER(REG_IRQ_ENABLE, MASK_IRQ_STATUS_RFON_DET)
    enable rfon irq
  6. wait for interrupt
  7. WRITE_REGISTER_AND_MASK(REG_SYSTEM_CONFIG, MASK_SYSTEM_CONFIG_COMMAND)
    abort any running command
  8. WRITE_REGISTER(REG_IRQ_CLEAR, MASK_IRQ_SET_CLEAR_ALL)
    clear all irq
  9. WRITE_REGISTER(REG_IRQ_ENABLE, MASK_IRQ_CARD_ACTIVATED)
    enable card irq
  10. SWITCH_MODE(MODE_AUTOCOLL, 0x01, 0x01)
    enter autocoll mode, use autonomos mode, only enable NFC-A
  11. wait for interrupt
  12. ?

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.

Labels (1)
Tags (1)
0 Replies