another question on spi slave mode

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

another question on spi slave mode

595件の閲覧回数
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 返信

539件の閲覧回数
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