Searching \ for '[PIC]: Count processor cycles PIC16F84 problem' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/time.htm?key=count
Search entire site for: 'Count processor cycles PIC16F84 problem'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Count processor cycles PIC16F84 problem'
2003\02\03@031652 by Ivan Dachev

flavicon
face
Hello PICLIST,

I have one question which answer I can't find clearly in
Microchip documentation.

How much processor cycles get this instruction:

           addwf      PCL,F       ; W + PCL -> PCL


In documentation is said that addwf take only 1 processor cycles
but it change the PCL and in datasheet it said in this case it take
2 cycles.

My question is anyone know how many cycles take this instruction
addwf PCL,F ?


--
Best regards,
Ivan                          spam_OUTi_dachevTakeThisOuTspamprosyst.bg

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2003\02\03@032521 by Wouter van Ooijen

face picon face
> My question is anyone know how many cycles take this instruction
> addwf PCL,F ?

2

BTW writing the same value back to PCL should be interpreted as a
modification, so it is 2 even when the value of W is 0.

BTW2 this holds for ALL instructions that write to PCL!

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2003\02\03@034222 by Jinx

face picon face
> How much processor cycles get this instruction:
>
>             addwf      PCL,F       ; W + PCL -> PCL

Takes 2 cycles (tried it with Stopwatch)

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2003\02\03@074023 by Bob Ammerman

picon face
Two

Bob Ammerman
RAm Systems

----- Original Message -----
From: "Ivan Dachev" <.....i_dachevKILLspamspam@spam@PROSYST.BG>
To: <PICLISTspamKILLspamMITVMA.MIT.EDU>
Sent: Monday, February 03, 2003 3:07 AM
Subject: [PIC]: Count processor cycles PIC16F84 problem


{Quote hidden}

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2003\02\03@082020 by Olin Lathrop
face picon face
> How much processor cycles get this instruction:
>
>             addwf      PCL,F       ; W + PCL -> PCL
>
>
> In documentation is said that addwf take only 1 processor cycles
> but it change the PCL and in datasheet it said in this case it take
> 2 cycles.

In general a ADDWF takes one cycle.  However, whenever the PC is changed
the prefetched instruction must be flushed, which wastes one cycle.
Therefore, ADDWF to PCL takes two cycles, but ADDWF to anything else takes
just one cycle.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

More... (looser matching)
- Last day of these posts
- In 2003 , 2004 only
- Today
- New search...