Searching \ for '[PIC]: Moving from f to w register' 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/devices.htm?key=pic
Search entire site for: 'Moving from f to w register'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Moving from f to w register'
2001\12\19@120711 by WEBB,TIM (A-Sonoma,ex1)

flavicon
face
I am new at this PIC stuff

I can move data from w to f register

but how do I move f back to w register

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\12\19@121510 by Milan Pavlica (YU7AEC)

flavicon
face
part 0 44 bytes
his is a multi-part message in MIME format.
part 1 551 bytes content-type:text/plain; charset=koi8-r (decoded 7bit)

movf f,d
if destination (d=0) then destination is  W register
if d=1 then destination is f itself
example:

MOVFB  FSR,0

After execution:
W = value of FSR register

Best regards!

"WEBB,TIM (A-Sonoma,ex1)" wrote:

> I am new at this PIC stuff
>
> I can move data from w to f register
>
> but how do I move f back to w register
>
> --
> http://www.piclist.com hint: The list server can filter out subtopics
> (like ads or off topics) for you. See http://www.piclist.com/#topics


part 2 201 bytes content-type:text/x-vcard; charset=koi8-r;
(decoded 7bit)

begin:vcard
n:Pavlica;Milan
x-mozilla-html:FALSE
org:SuperSonic Systems
adr:;;;;;;
version:2.1
email;internet:spam_OUTmpavlicaTakeThisOuTspamptt.yu
title:Chief
fn:Milan Pavlica
end:vcard


part 3 144 bytes
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\12\19@121727 by Carlos Ojea

flavicon
face
For example if the f register is STATUS, use this:

movff    STATUS, WREG

Regards,
Carlos

-----Original Message-----
From: WEBB,TIM (A-Sonoma,ex1) <.....tim_webbKILLspamspam@spam@AGILENT.COM>
To: PICLISTspamKILLspamMITVMA.MIT.EDU <.....PICLISTKILLspamspam.....MITVMA.MIT.EDU>
Date: miércoles 19 de diciembre de 2001 18:08
Subject: [PIC]: Moving from f to w register


{Quote hidden}

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\12\19@121938 by Byron A Jeff

face picon face
On Wed, Dec 19, 2001 at 10:06:17AM -0700, WEBB,TIM (A-Sonoma,ex1) wrote:
> I am new at this PIC stuff
>
> I can move data from w to f register
>
> but how do I move f back to w register

       movf    F,W

BAJ

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\12\19@122303 by Al Williams

flavicon
face
Use:

       MOVF   somereg,W

Notice that this can also be:
    MOVF    somereg,F

Which puts somereg back in somereg. Why would you do that? To set the
condition flags. So, one way to test if loopct is 0 would be:

       MOVF loopct,F
       BTFSC status,Z   ; skip if not zero
       GOTO itwaszero

Al Williams
AWC
* Floating point A/D
http://www.al-williams.com/awce/pak9.htm

> {Original Message removed}

2001\12\19@122317 by Drew Vassallo

picon face
>I can move data from w to f register
>
>but how do I move f back to w register

You should read through the documentation for MPLAB or MPASM.  They detail
the instruction set for PIC assembly.  Also, the datasheets for most of the
PICs available have instruction set summaries at the end.

But for now, you can use "MOVF Register_To_Move, W" or if you're using
MPASM, you can also use the mnemonic "MOVFW Register_To_Move".

--Andrew

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\12\19@123347 by Roman Black

flavicon
face
WEBB,TIM (A-Sonoma,ex1) wrote:
>
> I am new at this PIC stuff
>
> I can move data from w to f register
>
> but how do I move f back to w register


Read the instructions. :o)
The datasheet for each PIC usually has a very
good list of all the PIC asm instructions.
You will need to be familiar with most of these
before your PIC will do much.

movwf register
movf register,w
-Roman

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\12\19@125559 by Harold M Hallikainen

picon face
       There's also

       movfw           SomeReg

       which the assembler turns into

       movf            SomeReg,0

Harold

FCC Rules Online at http://hallikainen.com/FccRules
Lighting control for theatre and television at http://www.dovesystems.com

________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today!  For your FREE software, visit:
dl.http://www.juno.com/get/web/.

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2001\12\19@134403 by Herbert Graf

flavicon
face
I'd also like to add that in MPLAB Microchip included a macro called 'movfw'
which is automatically translated to movf f, W. TTYL

> {Original Message removed}

2001\12\20@020319 by dr. Imre Bartfai

flavicon
face
Hi,

If you using some Parallax-style assembler (e. g. CVASM)

       mov     W,someregister

This dialect uses the right-to-left direction consistently which may be
more appropriate for such old suys like me <G>.

Imre

On Wed, 19 Dec 2001, Byron A Jeff wrote:

{Quote hidden}

--
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 2001 , 2002 only
- Today
- New search...