Hi,
part is ok and I read IOPIN0 high with keil enviornment
Tom
relentless_6995 <bobd@...> wrote:
--- 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?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > }
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "lpc2000" on the web.
To unsubscribe from this group, send an email to:
lpc2000-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
---------------------------------
Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.
[Non-text portions of this message have been removed]Message
Re: [lpc2000] Re: what can be wrong
2005-09-13 by Tom Convent
Attachments
- No local attachments were found for this message.