Help 11u68 CMSIS

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Seb.Bx on Thu Jul 24 06:07:55 MST 2014

I am begginer as microcontroller programming so it may be a noob question.

I have been using the LP1769 board, and now I want to adapt my code to my own card who has the 11u68.
I am starting by lighting a LED on the port PIO2_19, but I can't access to the IOCON register of this port. The proposal stop at "LPC_IOCON->PIO1_9".
I am using the library CMSIS_CORE_LPC11Uxx downloaded here, but I see in the file LPC11Uxx.h that there is no declaration of ports PIO2_xx in the structure of LPC_IOCON.

I guess I have to download the CMSIS for the LPC11U6x, but I can't find it :(

This is what I did :

LPC_SYSCON->SYSAHBCLKCTRL |= 1 << 6;// Enable the clock to the GPIO

LPC_GPIO->DIR[2] |= 1 << 19;// P2_19 Direction as output
LPC_GPIO->SET[2] |= 1 << 19;// P2_19 Set to 1

Any help appreciated.