EmbeddedRelated.com
Forums

Machine cycle LPC 2106

Started by agsr...@gmail.com February 22, 2008
if i use one for loop means how much time it will take. in LPC 2106 Keil 3
MDK..

I dont have Digital Oscilloscope.So i am not able to measure..

On Tue, Feb 26, 2008 at 1:20 PM, Jasper Elsen wrote:

> That would be 20ns
>
> (10*5 = 50MHz) so you get 1/50000000 = 0,00000002 seconds = 20ns
>
> Van: l... [mailto:
> l... ] Namens srini
> vasan
> Verzonden: dinsdag 26 februari 2008 6:32
> Aan: l...
> Onderwerp: Re: [lpc2000] Machine cycle LPC 2106
> Dear Boris,
>
> I am using Lpc 2106 processor with 10 MHZ crystal, Multiplier value would
> be
> 5.
>
> so ,one instruction will take 0.00002 ns ,Is it correct?
>
> Please reply me...
>
> On Sat, Feb 23, 2008 at 5:44 AM, Boris Estudiez <
> b...@yahoo.com.ar > boris_tormentor%40yahoo.com.ar> >
> wrote:
>
> > On 21/02/2008 at 23:13:56 -0500 a...@gmail.com
> Wrote:
>
> > > hi all,
> > > I am newbie to LPC 2106? what is th machine cycle
> > > time for LPC 2106?.
> > >
> > > How much time ir will take to Execute one instruction.
> > >
> > > Regards,
> > > srinivasan.G
> >
> > Hi,
> >
> > In the ARM7DTMI-S processor (used in the LPC2106) the
> > CPU Cycle is equal to the Clock Cycle.
> >
> > The Clock Cycle is defined by your XTAL frequency and
> > your PLL settings.
> >
> > For example, the "subs" instruction takes one cpu-cycle,
> > so if the XTAL * PLL frequency is 60 MHz, the instruction
> > takes 16.6 nS.
> >
> > Branch instructions takes more cpu-cycles, for example
> > "bne goto_label" takes 3 cycles to jump.
> >
> > For the LPC2xxx family you have to add MAMTIM cycles
> > to branch intructions cpu-cycles if your are using the MAM.
> >
> > Refer to ARM7DTMI-S processor datasheet (www.arm.com)
> > for instruction CPU Cycles and read the MAM section
> > in the LPC2106 user manual.
> >
> > Download the delay.zip example from the group
> > files section for additional information.
> >
> > Regards,
> > Boris Estudiez.-
> >
> > --
> >
> > ======================================> > SLICETEX ELECTRONICS
> > ---
> > Embedded Systems for Industrial Apps.
> >
> > Mail : www.slicetex.com.ar/contacto
> > Website : www.slicetex.com.ar
> > ======================================> >
> >
> >
>
>
>
>
>

An Engineer's Guide to the LPC2100 Series