LPC11U14 - SPI example

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC11U14 - SPI example

706 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bruno on Wed May 16 07:37:15 MST 2012
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???
0 Kudos
Reply
1 Reply

668 Views
lpcware
NXP Employee
NXP Employee
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..
0 Kudos
Reply