LPSPI Peripheral Chip Select

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

LPSPI Peripheral Chip Select

跳至解决方案
2,662 次查看
Angel487
Contributor I

Hello NXP Community

On my project I need to drive a decoder/demultiplexer with SPI "chip select" pins (Pcs0, Pcs1, Pcs2).

This pins must be all active high (done) and I also need to drive more than one pin high or low.

This last requirement doesn't seem to be provided by the "fsl_lpspi" NXP driver.

I also tried to drive the pins as normal GPIOs, but this results in an out of timing behavior of CS.

Can you please help me?!

Thanks in Advance! 

Angelo

P.S. we are using this logic with de decoder since we have more than 4 chips on the SPI bus (see the attached schematics)

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

Hi @Angel487 ,

   Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.

  I checked the LPSPI IP module, from the register, just can select one PCS pin:

kerryzhou_0-1690782247227.png

TCR register:

kerryzhou_1-1690782256522.png

If you want more than one pin as the SPI_CS function.

Just the LPSPI IP hardware, no register to select it.

So, maybe still need to use the GPIO method.

You mentioned:

I also tried to drive the pins as normal GPIOs, but this results in an out of timing behavior of CS.

What's the detail situation? Which timing behavior is out?

Can you share some wave about it?

If you think the normal GPIO speed is slow, you can use the fast GPIO:

https://www.cnblogs.com/henjay724/p/15518705.html

If just the CS area is not correct, it is related to your GPIO CS code insert area, you need to go to the fsl_lpspi to add it.

 

With it helps you!

Best Regards,

Kerry

 

 

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
2,637 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Angel487 ,

   Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.

  I checked the LPSPI IP module, from the register, just can select one PCS pin:

kerryzhou_0-1690782247227.png

TCR register:

kerryzhou_1-1690782256522.png

If you want more than one pin as the SPI_CS function.

Just the LPSPI IP hardware, no register to select it.

So, maybe still need to use the GPIO method.

You mentioned:

I also tried to drive the pins as normal GPIOs, but this results in an out of timing behavior of CS.

What's the detail situation? Which timing behavior is out?

Can you share some wave about it?

If you think the normal GPIO speed is slow, you can use the fast GPIO:

https://www.cnblogs.com/henjay724/p/15518705.html

If just the CS area is not correct, it is related to your GPIO CS code insert area, you need to go to the fsl_lpspi to add it.

 

With it helps you!

Best Regards,

Kerry

 

 

 

0 项奖励
回复