NFC PN5180 porting to RT1050 SPI issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

NFC PN5180 porting to RT1050 SPI issue

跳至解决方案
3,555 次查看
yen_chen
Contributor III

Hi ,all

If I use SPI PCS0 pin and config to SPI,it will not pull low normally.

If SPI PCS0 pin config to GPIO it can pull low/high normally.

I want to config SPI for PCS0 and can low/high normally .

How can I do ?

Please see my DAL and SPI in the attachment.

 

Br,

Yen

标签 (1)
0 项奖励
回复
1 解答
3,544 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @yen_chen 

  Talk about my experience about the SPI control external modules experience.

   If the external SPI module need the special SPI CS control wave, normally, I won't use the MCU SPI IP CS, I will configure the CS pin as the GPIO, then in the Code use GPIO control high to low to generate the CS event.

   So your GPIO method, it is correct, as the IP module will control the CS directly without the freely control. You also can check the SPI register, not detail bit for the manually control, it is controlled by the IP hardware directly when you need to send the data and receive the data. 

  So, I still suggest you use the GPIO to control it.

 

Wish it helps you!

If you still have questions about it, please kindly let me know.

Best Regards,

kerry

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
3,545 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @yen_chen 

  Talk about my experience about the SPI control external modules experience.

   If the external SPI module need the special SPI CS control wave, normally, I won't use the MCU SPI IP CS, I will configure the CS pin as the GPIO, then in the Code use GPIO control high to low to generate the CS event.

   So your GPIO method, it is correct, as the IP module will control the CS directly without the freely control. You also can check the SPI register, not detail bit for the manually control, it is controlled by the IP hardware directly when you need to send the data and receive the data. 

  So, I still suggest you use the GPIO to control it.

 

Wish it helps you!

If you still have questions about it, please kindly let me know.

Best Regards,

kerry

 

0 项奖励
回复
3,538 次查看
yen_chen
Contributor III

Hi @kerryzhou 

If config PCS as GPIO, "PCS to clock delay time" ,time will long than config as SPI PCS.

Whether time will cause problem or not ?  

 

Br,

Yen

0 项奖励
回复
3,535 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @yen_chen 

  Yes, GPIO CS control will longer than the SPI IP CS control, as the software code also consume time.

  IP hardware will pull it directly.

  But, it doesn't matter, to the slave, after CS is pulled low, it will also wait the master's clk and data, so it's OK to use it. IP CS quick, but can't control it freely to match your slave detail frame situation.

Wish it helps you!

Best Regards,

kerry

0 项奖励
回复