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 = (0xFF<<LEDPIN); // set Bit = LED off (active low)
GPIO1_IODIR = (0xFF<<LEDPIN); // define LED-Pin as output
PCB_PINSEL2 &= ~(3<<2);
}
int main(void)
{
systemInit(); // PLL, MAM etc.
GPIO1_IOCLR =LEDMASK; // enable LED - "life sign"
gpioInit();
while(1)
{
GPIO1_IOCLR = LEDMASK; // enable LED
}
}Message
Help with GPIO
2006-04-28 by Gopalakrishnan
Attachments
- No local attachments were found for this message.