Yahoo Groups archive

Lpc2000

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

Message

P0.2 & P0.3 problems

2004-12-19 by nevelian

Hi,

I want to use P0.2 (SCL) & P0.3 (SDA) as GPIO, and are using the 
following code;

        PINSEL0 = 0x00000005;                               
	PINSEL1 = 0;
	IODIR = 0xFFFFFFFF;
	IOSET = 0xFFFFFFFF;

According to the datasheet I should have setup P0.0 & P0.1 as Uart 
pins and the rest as GPIO.

The UART works, as do GPIO P0.4 - P0.31, but why aren't P0.2 & P0.3 
outputing high (or do they need pullups)?

Rob

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.