EmbeddedRelated.com
Forums

Machine cycle LPC 2106

Started by agsr...@gmail.com February 22, 2008
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

An Engineer's Guide to the LPC2100 Series

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
======================================
Thank you very Much Boris...

On Sat, Feb 23, 2008 at 5:44 AM, Boris Estudiez <
b...@yahoo.com.ar> wrote:

> On 21/02/2008 at 23:13:56 -0500 a...@gmail.comWrote:
> > 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
> ======================================>
>
>
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> wrote:

> On 21/02/2008 at 23:13:56 -0500 a...@gmail.comWrote:
> > 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
> ======================================>
>
>
Hi all,
I am using 10 Mhz crystal with LPC 2106,so one instruction will take 0.00002 ns,is it correct? please give me your valuable suggestions.
I am using Lpc 2106 processor with 10 MHZ crystal, Multiplier value would be
5.

so ,instruction cycle time 0.00002 ns ,is it correct?

please reply ..

On Sat, Feb 23, 2008 at 5:44 AM, Boris Estudiez <
b...@yahoo.com.ar> wrote:

> On 21/02/2008 at 23:13:56 -0500 a...@gmail.comWrote:
> > 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
> ======================================>
>
>
> Hi all,
> I am using 10 Mhz crystal with LPC 2106,so one instruction will
> take 0.00002 ns,is it correct? please give me your valuable suggestions.
>

With 10 MHz crystal, and PLL multiplier of 5 , the frequency will be 50 MHz,
or 20 ns.
So a machine cycle will be 20 ns. Many of the ARM instructions need more
than one machine cycle.

Warm Regards,

Mukund Deshmukh,
Beta Computronics Pvt Ltd.
10/1 IT Park, Parsodi,
Nagpur -440022 India.
Web site - http://betacomp.com

MEET US AT,

Chinaplas 2008, Shanghai, China.
Hall E3, Booth P49
> With 10 MHz crystal, and PLL multiplier of 5 ,
> the frequency will be 50 MHz, or 20 ns.
> So a machine cycle will be 20 ns.
> Many of the ARM instructions need more than one machine cycle.

Depending on your value of 'many', IMO most require 3 cycles to
complete, but with the 3 stage pipeline that means 1 instruction
completing each machine cycle.

But that's when memory delivers an instruction in 1 cycle: RAM will, but
FLASH won't. It can approach it with the flash speedup thingy enabled
(MAM?).

Wouter van Ooijen

-- -------
Van Ooijen Technische Informatica: www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: www.voti.nl/hvu
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 >
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
> ======================================>
Why not use one of the LPC timers to measure how long it takes? Just setup a
timer and start it right before you enter the loop, then stop it again right
after you exit the loop.

Then check the counter register value and multiply it with 20ns (assuming
you run it at 0 prescaler).

Van: l... [mailto:l...] Namens srini
vasan
Verzonden: dinsdag 26 februari 2008 9:49
Aan: l...
Onderwerp: Re: [lpc2000] Machine cycle LPC 2106

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
> > ======================================> >
> >
> >
>
>
>