Yahoo Groups archive

Lpc2000

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

Thread

Delay Function

Delay Function

2004-12-20 by acetoel

Hello folks

does anybody have or know the best way to make a little function in a
C ompiler to make a delay with a LPC2106? Let's say 10mSeg... My clock
is 60Mhz...

I'll update a Zip file full of C code for Atmel AVR... It has drivers
for Compact Flash,  HardDisk, FAT, MMC, MP3 decoder, GPS, KS0108 LCD,
T6963 LCD, and so on... it's a good start point to port this code to
LPC and share it...

Thanks
Ezequiel

Re: [lpc2000] Delay Function

2004-12-20 by Robert Adsett

At 07:51 PM 12/20/04 +0000, you wrote:
>does anybody have or know the best way to make a little function in a
>C ompiler to make a delay with a LPC2106? Let's say 10mSeg... My clock
>is 60Mhz...

There is a delay function in the newlib lpc support ( 
http://www.aeolusdevelopment.com ).  It's been decoupled from the std C I/O 
support so should be useable even if you don't use newlib.

It uses one of the timer match registers which doesn't have an output pin.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

Re: Delay Function

2004-12-20 by acetoel

Thanks!!! Please...look at this URL... there a lot of interesting
things that will be very helpful for everybody.

http://www.procyonengineering.com/avr/avrlib/

Thanks
Ezequiel

--- In lpc2000@yahoogroups.com, Robert Adsett <subscriptions@a...> wrote:
> At 07:51 PM 12/20/04 +0000, you wrote:
> >does anybody have or know the best way to make a little function in a
> >C ompiler to make a delay with a LPC2106? Let's say 10mSeg... My clock
> >is 60Mhz...
> 
> There is a delay function in the newlib lpc support ( 
> http://www.aeolusdevelopment.com ).  It's been decoupled from the
std C I/O 
> support so should be useable even if you don't use newlib.
> 
> It uses one of the timer match registers which doesn't have an
output pin.
Show quoted textHide quoted text
> 
> Robert
> 
> " 'Freedom' has no meaning of itself.  There are always restrictions,
> be they legal, genetic, or physical.  If you don't believe me, try to
> chew a radio signal. "
> 
>                          Kelvin Throop, III

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.