another question on spi slave mode

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

another question on spi slave mode

599 Views
lyk
Contributor I

Hello:         

         I have another question on spi slave mode:

         if I use DSPI2 in slave mode, A3 as the chip select pin, how to config it?

         should I not only config the MSCR[3] SSS value equal 0010,but also config IMCR[49] SSS value equal 0001?

         Thank you!

0 Kudos
Reply
1 Reply

543 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

to use A3 pin as slave's chip select input you need to set

SIUL2.MSCR[3].R = 0x000C0000;            // Pad PA3: Enable input buffer and input hysteresis

SIUL2.IMCR[49].R = 0x1;            // Pad PA3: is SPI_2 CS0

BR, Petr