// Note:Connect MFRC522 module to 5v PIC without any Level converter.
// It'll work fine.
I had to increase the supply voltage to 3.7 volts for it to work perfectly.
This strongly indicates a level-shifter issue. You are probably missing the
level shifter circuits. Look at the schematic for your MFRC522 product.
Does it have built-in level shifter circuits ?
myloudharim
Joined: 13 Nov 2017 Posts: 10 Location: philly
Posted: Thu Mar 18, 2021 10:55 pm
Did you correct spi write function?
Code:
void spi_write(byte value )
{
SSPBUF = dat;
}
Should be
Code:
void spi_write(byte value )
{
SSPBUF = value;
}
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Sat Mar 20, 2021 11:47 am
That function is commented out in his code, and is not used.
It doesn't matter.
All times are GMT - 6 Hours Goto page Previous1, 2
Page 2 of 2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum