CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Using MFRC522 RFID Reader with PIC16F877
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> Code Library
View previous topic :: View next topic  
Author Message
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Jul 27, 2019 12:52 pm     Reply with quote

bharath0209 wrote:

// 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

View user's profile Send private message

PostPosted: Thu Mar 18, 2021 10:55 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sat Mar 20, 2021 11:47 am     Reply with quote

That function is commented out in his code, and is not used.
It doesn't matter.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> Code Library All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group