Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Help with GPIO

2006-04-28 by Gopalakrishnan

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
	}
}

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.