ProcessorExpert SPIMaster_LDD ChipSelect Problem

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

ProcessorExpert SPIMaster_LDD ChipSelect Problem

ソリューションへジャンプ
1,049件の閲覧回数
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 解決策
808件の閲覧回数
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 返答(返信)
809件の閲覧回数
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

808件の閲覧回数
sam001
Contributor I

Thank you for your answer! :smileyhappy:

0 件の賞賛
返信