SECTION VI-15: Instruction Size of the PIC18 MOVWF Instruction Formation

The MOVWF is a 2 byte (16 bit) instruction. Of the 16 bits, the first 8 bits are set aside for the opcode and the other 8 bits are used for the location of the file register in the data RAM. The Least significant bit of the opcode is designated by the letter 'a' to signify the access from the access bank or the other bank in the 4096 location. If a = 0, the fileReg is in the access bank. If a = 1, then we have to use bank switching.

PIC18 MOVWF Instruction Formation
movwf-instruction-formation-pic18.jpg

 

More From Iamtechnical.com

Advertisement:

SiteLock