another question on spi slave mode

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

another question on spi slave mode

529 次查看
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 项奖励
回复
1 回复

473 次查看
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