ProcessorExpert SPIMaster_LDD ChipSelect Problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ProcessorExpert SPIMaster_LDD ChipSelect Problem

Jump to solution
682 Views
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!

Labels (1)
1 Solution
441 Views
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

View solution in original post

2 Replies
442 Views
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

441 Views
sam001
Contributor I

Thank you for your answer! :smileyhappy:

0 Kudos