Teera,
I am using almost all the GPIO pins on my LPC2106
board for driving CS8900A (at high speed). When doing
this exercise I learnt an important thing about P0.16
-- this behaves very differently, the switching timing
are very slow -- other pins are ok.
Set the appropriate PINSEL & IODIR bits, probe the
pins using an Oscilloscope & do this (you will see it
yourself),
while(1)
{
IOCLR = 0xffffffff
IOSET = 0xaaaaaaaa
IOCLR = 0xffffffff
IOSET = 0x55555555
}
Cheers,
-Mike.
--- tphatrapornnant <tp35@...> wrote:
> Hi all,
>
> I'm using Ashling EVBA7 Philips LPC2100 Evaluation
> board (LPC2106). I
> got a problem about using GPIO P0.16-P0.31 as
> general input/output. I
> set some of these pins (P0.16-P0.31) as I did on
> P0.0-P0.15 pins which
> all were used and worked correctly. For P0.16-P0.31,
> it didn't work. I
> set pins to be output as the following:
>
> PINSEL0 &= ~P15;
> IODIR |= P15;
> IOSET = P15;
>
> PINSEL1 &= ~P26;
> IODIR |= P26;
> IOSET = P26;
>
> Both pins worked correctly on Keil simulator (I
> toggled both pins
> with '1' and '0' in while loop) but only P0.15 could
> toggle on the
> real H/W.
>
> Did I forget somethings? Does anyone have a clue?
>
> Thanks,
>
> Teera.
>
>
>
>
>
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.comMessage
Re: [lpc2000] GPIO problem on Ashling EVBA7 LPC2106
2005-10-23 by Michael Anburaj
Attachments
- No local attachments were found for this message.