lpcware

LPC4350 SSP0 SPI Slave mode problem

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 18, 2016 by lpcware
Content originally posted in LPCWare by Abrams on Fri May 06 08:23:57 MST 2016
Hi,

I'm using LPC4350 as Slave on SPI. In debug mode, when a packet is sent to Slave nothing happens neither an interrupt nor flag setting in SSP0 Status Register. Data in Data Register is 0x0000 also.

I changed SPI mode to Master and tried to send some data. I found that SSP0 operates and sends data as Master, but in Slave it does not.

Has Master to raise SS line for SSP0 module at each 8-bit transfer? In my case Master keeps SS line low during 12-bytes transmission.

SPI frequency is 160 kHz.

Is there a code example for configuring SSPx as SPI Slave?


Thanks.

Outcomes