I done a similar test, getting 1.282MHz switching speed (780ns period) which
is roughly 390ns to match your test. Strange how our result differ but your
right it is very slow.
Andy.
----- Original Message -----
From: "ocnek1" <markoskyj@...>
To: <lpc2000@yahoogroups.com>
Sent: Friday, May 12, 2006 5:51 PM
Subject: [lpc2000] IO-PIN TOGGLE TEST Not very fast?
> Hello,
>
> I wrote this little test to see how fast I could toggle an IO pin.
> Using the way I did it here from rising edge to falling edge the time
> is only ~540nS. This seems slow to me. Is it? I have verified that
> the DesiredSpeed is indeed locked at ~60MHz
>
> Thanks,
> Oc.
>
>
> int main( void)
> {
> IO1DIR |= (1 << 25);
>
> (void)SetNativeSpeed(14746uL);
> (void)SetDesiredSpeed(60000uL);
>
> (void)SetMAM( 3u, MAM_full_enable);
> (void)VPBControl(VPB_DIV1);
>
>
>
> for(;;)
> {
> IO1CLR &= ~(1 << 25);
> IO1SET |= (1 << 25);
>
> IO1CLR |= (1 << 25);
> IO1SET &= ~(1 << 25);
> }
>
>
> }
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>Message
Re: [lpc2000] IO-PIN TOGGLE TEST Not very fast?
2006-05-12 by Andy
Attachments
- No local attachments were found for this message.