Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2100] Odd Timer Behaviour

2004-01-30 by Robert Adsett

At 04:26 PM 1/20/04 -0500, you wrote:
>I've just run into some odd timer behaviour while working on timing
>routines.  I'm going to spend some more time nailing down a good
>demonstration but I thought I would report my preliminary results and see
>what ideas anyone might have.

Found the problem (and have a solution mostly ready). I keep forgetting the 
ARM has no hardware division.  The time was going up as the division had to 
cope with more significant bits.  Since I'm dividing by a constant in this 
case I can replace it with an expansion that takes constant time regardless 
of the value.

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

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.