[MFRC522] Improve range of reader

This commit is contained in:
TD-er
2025-06-26 21:04:48 +02:00
parent 74a2f920dd
commit 28b47fb1cf
+5
View File
@@ -233,6 +233,11 @@ void MFRC522::PCD_Init() {
PCD_WriteRegister(TxASKReg, 0x40); // Default 0x00. Force a 100 % ASK modulation independent of the ModGsPReg register setting
PCD_WriteRegister(ModeReg, 0x3D); // Default 0x3F. Set the preset value for the CRC coprocessor for the CalcCRC command to 0x6363 (ISO 14443-3 part 6.2.4)
PCD_WriteRegister(CWGsPReg, 0b111111); // conductance of the p-driver output
PCD_WriteRegister(ModGsPReg, 0b111111); // conductance of the p-driver output
PCD_WriteRegister(GsNReg, 0b11111111); // impedance of the n-driver
PCD_AntennaOn(); // Enable the antenna driver pins TX1 and TX2 (they were disabled by the reset)
} // End PCD_Init()