lpcware

LPC1114FN/102 R_PIO0_11 not functioning as output.  - [SOLVED]

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by mp035 on Tue Sep 02 06:35:29 MST 2014
Hi All, I'm new to LPC devices, have used all forms of PIC microcontrollers for many years.  I am trying to drive R_PIO0_11 on LPC1114 in DIP28 package, and no matter what I try, it does not respond, other GPIO pins seem to work fine.  Any hints on what I am missing would be very welcome.  Here is my code:

    GPIOInit();

    SystemCoreClockUpdate();
    /* Setup SysTick Timer for 1 msec interrupts  */
    if (SysTick_Config(SystemCoreClock / 1000)) {
        while (1);                                  /* Capture error */
    }

    // manual CS PIN
    LPC_IOCON->R_PIO0_11 =
    0x01 | // select GPIO as function
    (0x00 << 3)| // no pull-up/pull-down
    (0x00 << 5)| // no hysteresis
    (0x01 << 7)| // digital pin
    (0x00 << 10); // non open-drain
    GPIOSetDir(0, 11, output); //manual CS pin
    GPIOSetValue(0, 11, 0); //*************************** PIO0_11 stays HIGH!!!!!!!!!!

Outcomes