mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-28 04:07:47 +00:00
[MFRC522] Improve range of reader
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user