SPI Interface between the LPC1227FBD48 wit the SLRC610 RFID

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SPI Interface between the LPC1227FBD48 wit the SLRC610 RFID

5,041件の閲覧回数
sai-t
Contributor II

Hi Team,

I am working on to interface the SPI communication between the LPC1277 controller with the SLRC610 RFID chip. Can yo please share the demo sample code to read the EEPROM data of the SLRC610 chip in order to do communication between them. Because I am unable to find any references online for this microcontroller.

ラベル(1)
タグ(1)
0 件の賞賛
返信
7 返答(返信)

4,969件の閲覧回数
sai-t
Contributor II

Please find the attached files for the SPI transaction I have done in order to communicate with the Slave device. I am trying to fetch the product ID of the SLRC610 which is present in the 01h address of the EEPROM.I am receiving the continuous 0xFF as a response.

Could you please check and let me know the issue.

0 件の賞賛
返信

3,825件の閲覧回数
ajit_s19871
Contributor I
Can you please full code, I started this but not getting full details, I want to run FreeRTOS on LPC1227FBD48 mcu, If you have any idea or code can you please share with me.
If you share, its easy to modify next integration.
Thank you in advanced .
0 件の賞賛
返信

4,949件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @sai-t 

I recommend that you use a logic analyzer to capture signal and check where the problem occurs. If still can not solve, please send the signal picture to me, I help you check. Thanks.

 

BR

Alice

0 件の賞賛
返信

4,935件の閲覧回数
sai-t
Contributor II

Hi @Alice_Yang thanks for the reply we want to get the Product ID from address 0x01 

using the code 

SPI_ChipSelect(1);
    // Send read command and address
SPI_TransferJ(0x03); // Read command
SPI_TransferJ(0x01);
rdata = SPI_TransferJ(0x00); // Dummy write to read data
for (volatile int j = 0; j < 1000; j++);
SPI_ChipSelect(0);


Capture1.PNG

but on analyzer the data is shown different like on MOSI 0x03 become 0x06 (left sift ) can you look and update me what is going wrong from my side?? 
0 件の賞賛
返信

4,819件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @sai-t 

If you send 0x03, yet the signal detected on the analyzer shows 0x06, you should first check the Data register (DR).

Alice_Yang_0-1737621424063.png

 

 

BR

Alice

0 件の賞賛
返信

5,008件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @sai-t 

Firstly, you can refer to the thread below and the SPI demo under "LPC12xx CMSIS Driver Library".

https://community.nxp.com/t5/LPCXpresso-IDE/SSP-SPI-problem-LPC1227/m-p/592093 

Please contact us if you still have any issues.

 

BR

Alice

0 件の賞賛
返信

4,984件の閲覧回数
sai-t
Contributor II
Hi Alice_Yang, Thanks for your help. I have gone through the code and tried it in my project. But when I am trying to use those functions the BSY bit is continuously getting HIGH and getting struct in the while condition. And because of that I am unable to store the response that is coming from the MISO line. The same DR register is used for the transmission and the receiver. Can you help me how to resolve this issue.
0 件の賞賛
返信