Mifare card detection on CLRC663

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mifare card detection on CLRC663

1,541 Views
kris_kris
Contributor I
We are using NXP - CLEV663B Blueboard 3.0 version. We are trying to interface this to PIC18F controller. We made the required H/W modifications and figured out that SPI READ and SPI WRITE are functioning properly.

 

We referred to AN11022 for Initialization sequence and wrote the function mfrc663_init() .We want to detect the MIFARE / 14443A card and loaded the appropriate protocol numbers (0 , 0).
We loaded the values 0x00,0x00 (which corresponds to MIFARE/14443A) in register 0x05.

 

We referred to AN11145 for calibration and detection sequence and wrote the functions mfrc663_calibrate() , mfrc663_card_detect() .
In mfrc663_calibrate() we calculate the I and Q values and set them in mfrc663_card_detect() routine.
We got
I_VAL = 0x00
Q_VAL = 0x40
Since we got I_VAL = 0x00, we considered bIMin = 0x00 (We assumed TH = 1).
We set the bIMin = 0x00, bQMin = 0x39, bQMax = 0x41 and went for card detection.

We calibrated the values once in mfrc663_calibrate() and use it multiple times  in mfrc663_card_detect().

In function mfrc663_card_detect() we are waiting in a loop to detect LPCD_IRQ and doesnt come out of the loop, even on showing the MIFARE card .
When we read the error register, we dont see any errors reported.

 

Please refer to 663_code.c for our code snippets. attached it to this case.

 

Please clarify on below points
a) Are the I_VAL and Q_VAL proper? Are the calcualted bIMin, bQMin, bQMax values are with in range (considering TH = 1)?
b) Do you have any PC Tool/Desktop application and scripts to communicate with the NXP - CLEV663B Blueboard 3.0 version board.

Regards,
Vamshi

Original Attachment has been moved to: 663_code.c.zip

0 Kudos
1 Reply

978 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Vamshi,

There is a software package including the example you are looking for, please refer to the following for details.

pastedImage_1.png

You may download it from https://www.nxp.com/webapp/Download?colCode=SW2978&appType=license&Parent_nodeId=1442452680020731133... .

Quick start guide can be referred from http://www.nxp.com/documents/application_note/AN11211.pdf 

Hope that helps,


Have a great day,
Kan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------