版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wowocpp/article/details/82379565
例程的位置:
SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\SampleCode\Nu-LB-NUC140\UART_RC522
SW_Nu_LB_NUC140_v1.0\Nu_LB_NUC140_BSP\SampleCode\Nu-LB-NUC140\SPI_RFID-RC522
连接:
//
// SPI_RFID-RC522 : SPI interfacing with RC522 RFID reader
//
// MCU : NUC140VE3CN
// EVB : Nu-LB-NUC140
// SPI : RFID-RC522
//
// RC522 RFID Reader
// SDA (SS) : connected to GPC8 (SPI1_SS)
// SCK (SCK): connected to GPC9 (SPI1_CLK)
// MOSI : connected to GPC11(SPI1_MOSI)
// MISO : connected to GPC10(SPI1_MISO)
// IRQ : no connection
// GND : connected to Gnd
// RST : connected to PC13
// VCC : connected to 3.3V
#define RST522_1 PC13=1
#define RST522_0 PC13=0
#define SUCCESS 1
使用那个好用的RC522模块
(稍后补充)