toggling GPIO on LPC2148
Posted: Fri Feb 24, 2012 5:09 am
Hi,
I intend to use P0.7 of LPC2148 as chip select for one of my pheripherals on board hence I am trying to toggle GPIO P0.7 but it stays latched to high state. I have tried to use following APIs to program the pad mode but still it does not help.
palSetPadMode(IOPORT1,7,PAL_MODE_OUTPUT_PUSHPULL);
I can change values of other GPIOs (P1.16~1.23 and P29) on board using palSetPort and palClearPort APIs but P0.7 is exception to this. I am using default board config for Olimex LPC2148 board and have not changed it much. Am I missing something?
Regards,
Sagar
I intend to use P0.7 of LPC2148 as chip select for one of my pheripherals on board hence I am trying to toggle GPIO P0.7 but it stays latched to high state. I have tried to use following APIs to program the pad mode but still it does not help.
palSetPadMode(IOPORT1,7,PAL_MODE_OUTPUT_PUSHPULL);
I can change values of other GPIOs (P1.16~1.23 and P29) on board using palSetPort and palClearPort APIs but P0.7 is exception to this. I am using default board config for Olimex LPC2148 board and have not changed it much. Am I missing something?
Regards,
Sagar