Sign in

username:

password:



Not a member?

Search lpc2000



Search tips

Subscribe to lpc2000



lpc2000 by Keywords

2106 | ADC | ARM7 | Atmel | Bootloader | CAN | CrossStudio | CrossWorks | DDS | ECos | Ethernet | ETM | FIFO | FLASH | FPGA | GCC | GDB | GNU | GNUARM | GPIO | I2C | IAP | IAR | JTAG | Kickstart | LCD | Linux | LPC | LPC-E2294 | LPC2000 | LPC2100 | LPC2104 | Lpc2106 | Lpc210x | LPC2114 | LPC2119 | LPC2124 | LPC2129 | Lpc2138 | LPC213x | LPC21xx | LPC2210 | LPC2212 | LPC2214 | LPC2292 | LPC2294 | LPC2xxx | LPC3128 | MCB2100 | Olimex | Philips | PWM | Rowley | RTC | RTOS | SPI | SSP | UART | UART0 | UART1 | ULINK | USB | Watchdog | Wiggler

Ads

Discussion Groups

Discussion Groups | LPC2000 | Machine cycle LPC 2106

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

Machine cycle LPC 2106 - agsr...@gmail.com - Feb 22 1:11:21 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



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )


Re: Machine cycle LPC 2106 - Boris Estudiez - Feb 22 20:09:38 2008

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



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: Machine cycle LPC 2106 - srini vasan - Feb 22 22:37:19 2008

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
> =======================================
>
>
>
[Non-text portions of this message have been removed]



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: Machine cycle LPC 2106 - srini vasan - Feb 26 0:34:04 2008

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
> =======================================
>
>
>
[Non-text portions of this message have been removed]



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: Machine cycle LPC 2106 - agsr...@gmail.com - Feb 26 0:40:14 2008



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.



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: Machine cycle LPC 2106 - srini vasan - Feb 26 0:48:57 2008

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
> =======================================
>
>
>
[Non-text portions of this message have been removed]



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: Re: Machine cycle LPC 2106 - Mukund Deshmukh - Feb 26 1:39:02 2008

> 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



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

RE: Re: Machine cycle LPC 2106 - wouter van ooijen - Feb 26 2:57:42 2008

> 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



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

RE: Machine cycle LPC 2106 - Jasper Elsen - Feb 26 2:57:58 2008

That would be 20ns

(10*5 = 50MHz) so you get 1/50000000 = 0,00000002 seconds = 20ns

Van: l...@yahoogroups.com [mailto:l...@yahoogroups.com] Namens srini
vasan
Verzonden: dinsdag 26 februari 2008 6:32
Aan: l...@yahoogroups.com
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
> =======================================
>

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

RE: Machine cycle LPC 2106 - Jasper Elsen - Feb 26 4:46:17 2008

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...@yahoogroups.com [mailto:l...@yahoogroups.com] Namens srini
vasan
Verzonden: dinsdag 26 februari 2008 9:49
Aan: l...@yahoogroups.com
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...@yahoogroups.com
[mailto:
> l...@yahoogroups.com
] Namens srini
> vasan
> Verzonden: dinsdag 26 februari 2008 6:32
> Aan: l...@yahoogroups.com

> 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
> > =======================================
> >
> >
> > [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: Machine cycle LPC 2106 - srini vasan - Feb 26 5:44:31 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...@yahoogroups.com [mailto:
> l...@yahoogroups.com ] Namens srini
> vasan
> Verzonden: dinsdag 26 februari 2008 6:32
> Aan: l...@yahoogroups.com
> 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
> > =======================================
> >
> >
> > [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
>
>
[Non-text portions of this message have been removed]



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )