SECTION VI-13: Instruction Size of the PIC18 MOVLW Instruction Formation

PIC18 program memory is byte addressable, and the instructions are either 2 byte or 4 byte. All the instructions in the PIC18 are 2 byte instructions. The exceptions are MOVFF, GOTO and few others.

The MOVLW 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 literal value of 00 to FFH. This is shown below.

MOVLW Instruction Formation


More From