lpcware

SSP1 problem on LPC1788

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by virtuPIC on Mon Jul 20 07:09:24 MST 2015
Hi there,

I've got a board with an LPC1788. I want to access external flash and EEPROM via SSP1. SSP0 connection to an ADC works already.

Code looks like this (SSEL is handled by GPIO):

<code>
LPC_SSP_T *ssp = LPC_SSP1;
Chip_SSP_Init(ssp);
Chip_SSP_SetBitRate(ssp, 30000000);
Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 7, (IOCON_FUNC2 | IOCON_MODE_INACT));
Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 8, (IOCON_FUNC2 | IOCON_MODE_INACT));
Chip_IOCON_PinMuxSet(LPC_IOCON, 0, 9, (IOCON_FUNC2 | IOCON_MODE_INACT));
Chip_SSP_SetFormat(ssp, SSP_BITS_8, SSP_FRAMEFORMAT_SPI,
SSP_CLOCK_CPHA0_CPOL0);
Chip_SSP_SetMaster(ssp, 1);
Chip_SSP_Enable(ssp);
</code>

This setup works for the ADC via SSP0 but not on SSP1. My scope doesn't show any signal on SCKL, MISO, MOSI.

Any help apprecciated!
Thomas

Outcomes