Problem with MOVF instruction

Status
Not open for further replies.
eblc1388 said:
He is correct.

His program would stop running while PIC executes whatever left inside the flash memory.

Not really what I would call 'correct', his program will stop running for a very short time (couple of miliseconds?), as it executes all the NOP's in the blank memory, then the PC will loop round and the program will run again from the start.

It's absolutely essential that you finish a program correctly, and not make such a bad mistake.
 
so the " END " as the last line of the program doesn't stop the program from running? you would actually have to tell the program counter to go some where that would stop it?
 
Gaston said:
so the " END " as the last line of the program doesn't stop the program from running? you would actually have to tell the program counter to go some where that would stop it?

If you check the PIC instruction set there's no such instruction as 'END', it's merely a command to the assembler, to inform it the end of the program has been reached, and to stop assembling.

Like any processor, a PIC does what you tell it - and not what you would like it to do - if you don't explicitly tell it to do something it will just keep executing any code it finds (and blank words read as nop's).
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…