MFRC522 multible card/tag

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: MFRC522 multible card/tag

Post by jgu1 »

Hi hi. I Discover that. Everytime I opened the project the output was changed to A0 ???

Thank´s :D

Jorgen

samtin
Posts: 14
Joined: Fri Jun 24, 2016 8:14 pm
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: MFRC522 multible card/tag

Post by samtin »

Howdy,
Can someone do a teleportation from ATMEGA32 to PIC16F877A?
Thank you in advance!

chipfryer27
Valued Contributor
Valued Contributor
Posts: 773
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 185 times
Been thanked: 204 times
Contact:

Re: MFRC522 multible card/tag

Post by chipfryer27 »

Hi

Have you tried to convert it yourself?

Flowcode is chip independent so it is usually quite easy to port from one device to another, assuming the new target is capable (RAM/ROM/Ports/Peripherals/Speed etc).

If you go to Build and select the 877A as your new target you may get warnings about port pins. For example if the original file had Port F pin 2 and the new target doesn't, then you will get a warning. Simply select a new port and pin for each warning. If using a peripheral such as a UART then obviously that needs to be set specifically for your new chip.

The above sounds harder than it is and it shouldn't take long to do (assuming the 877A is capable).

Hope this helps.

Regards

samtin
Posts: 14
Joined: Fri Jun 24, 2016 8:14 pm
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: MFRC522 multible card/tag

Post by samtin »

Hello,
Thank you very much for your answer. I tried, I also made the connections to the PIC16F877A but it doesn't work. I was very careful with porting and as you mentioned I only changed the processor. It is possible that I am wrong somewhere, but I don't know where.

chipfryer27
Valued Contributor
Valued Contributor
Posts: 773
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 185 times
Been thanked: 204 times
Contact:

Re: MFRC522 multible card/tag

Post by chipfryer27 »

Hi

If you post your chart we can have a look.

Regards

samtin
Posts: 14
Joined: Fri Jun 24, 2016 8:14 pm
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: MFRC522 multible card/tag

Post by samtin »

Hello,
How should PIC16F877A be interfaced with the RC522 module? Below is the ported file from Atmega32 to PIC16F877A.
Attachments
Card_Test v2 877A.fcfx
(22.22 KiB) Downloaded 9 times

chipfryer27
Valued Contributor
Valued Contributor
Posts: 773
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 185 times
Been thanked: 204 times
Contact:

Re: MFRC522 multible card/tag

Post by chipfryer27 »

Hi

If you download the file Jorgen kindly shared in a previous post

https://www.matrixtsl.com/mmforums/view ... 54#p100454

and then change the target to your 877A you will be well on the way. You will need to reassign a couple of pins (but not many). I've no access to hardware at present so can't actually test anything but if you forward your chart once changed to 877A we can help.

Regards

samtin
Posts: 14
Joined: Fri Jun 24, 2016 8:14 pm
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: MFRC522 multible card/tag

Post by samtin »

Hello,
I did the porting to the PIC16F877A, now I'm trying to do my homework and understand the flowchart.
Attachments
Card_Test v3 5Card Working 877A.fcfx
(26.88 KiB) Downloaded 9 times

chipfryer27
Valued Contributor
Valued Contributor
Posts: 773
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 185 times
Been thanked: 204 times
Contact:

Re: MFRC522 multible card/tag

Post by chipfryer27 »

Hi

Not been able to have a look yet, but hope to tonight.

Regards

Post Reply