I am using the MCB2130 Board.I have written a program in WinARM to
configure PORT1 as output and to bring it low.But strangely port poins
P1.24,P1.31 all give high around 2.14V .When made high all pins gives
3.3V.Can somebody help me with what i am doing wrong
static void gpioInit(void)
{
GPIO1_IOCLR =0xFFFFFFFF;
GPIO1_IODIR = (0x1FF<<16);
PCB_PINSEL2 &= ~(3<<2);
}
int main(void)
{
systemInit();
GPIO1_IOCLR =0xFFFFFFFF;
gpioInit();
while(1)
{
GPIO1_IOCLR = 0xFFFFFFFF; // enable LED
}
}Message
Help with GPIO
2006-04-28 by Gopalakrishnan