This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2540 Interfacing with NFC IC

Other Parts Discussed in Thread: CC2540

Hello,

I'm developing a CC2540 based NFC card reader using a NXP MFRC522 IC. The reader will be connected to the SPI interface on pins MISO(P0_2), MOSI(P0_3),SSN(P0_4) and SCK(P0_5).  I would like to know if there is any driver or library I can use to interface the CC2540 and the MFRC522 or if anyone has advice on the best approach to take moving forward with this?

Any help will be appreciated.

Thank you

  • You can have a look at hal_lcd.c. In LCD driver, it use SPI on UART 1 alternative 2. You can check halLcd_ConfigSPI() and HalLcd_HW_Control() to see how it works. Since you use SPI interface on pins MISO(P0_2), MOSI(P0_3),SSN(P0_4) and SCK(P0_5), you need to revise the driver to SPI on UART 1 not alternative 2.