mfrc522 library for psoc 5lp?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JoRo_4248381
Level 1
Level 1
First like given

hello, I'm trying to use a library that I found for the 5lp psoc (GitHub - LASER-UD/RC522 ), but it's not responding, someone has a library working for this module?​

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.

I have slightly modified the functions PCD_WriteRegister () and PCD_ReadRegister () only.

I had to enter a delay (over 500uS) and double read.

Unfortunately, I do not understand how to make these functions correctly, I hope someone will tell us.

  I did a minimal communication test with the RC522.

1. Reading a register using VersionReg as an example

2. Writing to the register using the example of the TxControlReg register in the function PCD_AntennaOn / PCD_AntennaOff

3. Detection of communication with the card (ComIrqReg bit 6).

I'm using CY8CKIT-050 dev kit it has a 3.3 volt source.

Evgeniy

1.jpg

View solution in original post

5 Replies
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi JoRo_4248381​,

Can you please let me know the error that you are facing or where your project is getting stuck? Can you also share your project so that it is easier for us to debug?

I found the following links -

1. https://www.element14.com/community/thread/26607/l/psoc-4-pioneer-kit-community-project082-near-fiel...

2. https://www.element14.com/community/thread/26606/l/psoc-4-pioneer-kit-community-project081-near-fiel...

3. https://www.cypress.com/comment/335251

Please let me know if the projects shared in these links help solve your issue.

Thanks and Regards,

Rakshith M B

Thanks and Regards,
Rakshith M B
0 Likes
lock attach
Attachments are accessible only for community members.

Hi, basically what I am doing is using the library of this link RC522/RFID.cydsn at master · LASER-UD/RC522 · GitHub .

I am using the cy8ckit 059, try to turn on the led onboard every time I detect a tag:

RC522 main.bmp

it doesn´t work for me. need help

Thanks

0 Likes

It seems  a mode MSB First is required:

MSB.png 

0 Likes
lock attach
Attachments are accessible only for community members.

I have slightly modified the functions PCD_WriteRegister () and PCD_ReadRegister () only.

I had to enter a delay (over 500uS) and double read.

Unfortunately, I do not understand how to make these functions correctly, I hope someone will tell us.

  I did a minimal communication test with the RC522.

1. Reading a register using VersionReg as an example

2. Writing to the register using the example of the TxControlReg register in the function PCD_AntennaOn / PCD_AntennaOff

3. Detection of communication with the card (ComIrqReg bit 6).

I'm using CY8CKIT-050 dev kit it has a 3.3 volt source.

Evgeniy

1.jpg

Thanks for the help. I will continue testing with basic communication.

Greetings

0 Likes