Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 13th February 2008, 07:31 PM   (permalink)
Default Movfw?

Is there any command like this- movfw?
When I wrongly typed it, MPLAB showed it in 'blue' just like any other command. Also it didn't show any error when 'build all' was clicked.I was creating a program for 16F877A. Couldn't find anything like that in the datasheet.But found many when I searched on this forum.
What could be the reason?

Last edited by asp1987; 13th February 2008 at 07:35 PM. Reason: To add more details.
asp1987 is offline  
Reply With Quote
Old 13th February 2008, 07:36 PM   (permalink)
Default

MOVFW does not exist,(just see the data sheet) but, say you want to mov carry(C) to W, you use the instruction MOVF C,W.
__________________
Regards,
William Mullaney

"HOPE for the best, EXPECT the worst, ACCEPT whatever comes."

http://wiliamsville.myminicity.com/
http://wiliamsville.myminicity.com/ind/
http://wiliamsville.myminicity.com/tra/
wmmullaney is offline  
Reply With Quote
Old 13th February 2008, 07:38 PM   (permalink)
Default

Thanks...
asp1987 is offline  
Reply With Quote
Old 13th February 2008, 07:44 PM   (permalink)
Default

MOVFW doesn't exist as a PIC instruction, but it DOES exist as an assembler directive, and creates the 'MOVF Address, W' line.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply With Quote
Old 14th February 2008, 04:10 AM   (permalink)
Default

Quote:
Originally Posted by asp1987
Is there any command like this- movfw?
There are Special Instruction Mnemonics see the attached document.
__________________
Gayan

My Website
http://gsmicro.blogspot.com/

Last edited by Gayan Soyza; 7th July 2008 at 02:51 AM.
Gayan Soyza is offline  
Reply With Quote
Old 14th February 2008, 05:03 AM   (permalink)
Default

And pretty color ones at the back of my Firefly manual
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Drive 33 Servos With One PIC + USART wschroeder Micro Controllers 40 14th July 2008 02:22 PM
pic16f870 a to d, d to a hotrodhed120 Micro Controllers 29 9th March 2007 10:24 PM
im stupid cos i can do this in a 'C program but not in basic Ricardoco Micro Controllers 33 21st November 2004 08:14 PM
ya mari_69 Micro Controllers 4 7th June 2004 01:29 PM
Having problems with pic16f872 cjgalway1000 Micro Controllers 0 7th April 2004 02:39 PM



All times are GMT. The time now is 11:22 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.