Yahoo Groups archive

Lpc2000

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

Message

Re: what can be wrong

2005-09-12 by relentless_6995

--- In lpc2000@yahoogroups.com, "y4krys" <krys.brukalo@a...> wrote:
That's okay - even though it is an "output only" apparently you 
still must set it as such with the IODIR0 register - if you don't it 
appears not to behave as an output. BUT I STILL haven't solved this 
behavior: the high order bit of IOPIN0 never seems to read HI.

> Sorry, I should have checked.  P0.31 is an output only.
> Krys
> 
> --- In lpc2000@yahoogroups.com, "relentless_6995" <bobd@c...> 
wrote:
> > LPC2138 with IAR environment
> > 
> > ---
> > volatile unsigned long ul0;
> > 
> >         // interrupts are disabled at this point to be sure
> >         // they are not cause of problem 
> > 
> > 	IOCLR0 = 0x80000000;	// gpio_RFMODEM_RESET_P0_31_o;
> > 	ul0 = IOPIN0;	
> > 	
> > 	IOSET0 = 0x80000000;	// gpio_RFMODEM_RESET_P0_31_o;
> > 	ul0 = IOPIN0;	
> > 	
> > 
> > ... function goes on
> > ---
> > 
> > THE PROBLEM IS THE HIGH ORDER BIT IN ul0 IS NEVER SET AFTER 
READING 
> > IOPIN0 - THE HIGH ORDER BIT DOES NOT REFLECT THE ACTUAL P0.31 
> OUTPUT 
> > LEVEL THAT I SEE ON THE SCOPE - it always remains low while the 
> > p0.31 output changes accordingly
> > 
> > Tried on two sets of hardware ... it doesn't get any simpler ... 
> > maybe I've been staring too long. Is there a problem in the part?
> > Anybody?
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 	
> > }

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.