ProcessorExpert SPIMaster_LDD ChipSelect Problem

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

ProcessorExpert SPIMaster_LDD ChipSelect Problem

跳至解决方案
1,033 次查看
sam001
Contributor I

Hi,

I'm using SPIMaster_LDD component. I've set 2 Chip select:

After the init function the gpio pins are not configured! (PTC0 and PTC1 should be output, and high: GPIOC_PDDR ---> 0x03, GPIOC_PDOR ---> 0x03)

Can you tell me what I do wrong?

Thank you!

标签 (1)
1 解答
792 次查看
jiri_rezler
NXP Employee
NXP Employee

Hello,

SPIMaster_LDD component uses a  “SPIx_PCSy” SPI chip select pins (it means that nothing pins in GPIO mode are used).
“SPIx_PCSy”  function is set by a PIN routing (PIN mux control - settings in “PORTx_PCRn“ register).
GPIO registers are used only for GPIO pin function.

Best regards,
Jiri Rezler

在原帖中查看解决方案

2 回复数
793 次查看
jiri_rezler
NXP Employee
NXP Employee

Hello,

SPIMaster_LDD component uses a  “SPIx_PCSy” SPI chip select pins (it means that nothing pins in GPIO mode are used).
“SPIx_PCSy”  function is set by a PIN routing (PIN mux control - settings in “PORTx_PCRn“ register).
GPIO registers are used only for GPIO pin function.

Best regards,
Jiri Rezler

792 次查看
sam001
Contributor I

Thank you for your answer! :smileyhappy:

0 项奖励
回复