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!
Solved! Go to Solution.
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
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
Thank you for your answer! :smileyhappy: