lpcware

LPC1115, SSP registers not setting

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by johnnyfp on Mon Oct 13 23:20:48 MST 2014
Hi,

I'm trying to setup the SSP on my LPC1115Dev board and for the life of me I can't get the registers to set.

In eclipse I step through in debug mode, and can see the statements executing but the registers just don't update and if I read them back I always get zero. I even print the register, thinking that maybe the debug if not working properly.

LPC_SSP0->CR1=0xC;
LPC_SSP0->CR1=0xE;
printf("0x%x\n",LPC_SSP0->CR1);


I've made sure that the SPI and IOCON clocks are on and have set the SPI clock to be /4 of the IRC PLL of 48Mhz just incase its a clock issue, with still no luck.

Can anyone give me any pointers please.

Cheers


Original Attachment has been moved to: workspace2.zip

Outcomes