Content originally posted in LPCWare by creafyumi on Sun May 20 19:15:11 MST 2012
Quote: bruno
I modified the SSP example of LPC11xx for LPC11U14.
#ifdef __JTAG_DISABLED
// LPC_IOCON->SCK_LOC = 0x00; //!< Offset: 0x0B0 SCK pin location select Register (R/W) ????
LPC_IOCON->SWCLK_PIO0_10 &= ~0x07;
LPC_IOCON->SWCLK_PIO0_10 |= 0x02; /* SSP CLK */
in this part of code there is registrer "SCK_LOC. This registrer there is not at code of LPC11Uxx.
How can modified this registrer???
Just Ignore this register,
LPC_IOCON->SWCLK_PIO0_10 &= ~0x07;
LPC_IOCON->SWCLK_PIO0_10 |= 0x02; /* SSP CLK */
will do.
LPC11U14 does not have this register, this register is for SCK0 Pin location selection for LPC11xx, LPC13xx etc..