|
PIC16HV540 Datasheet, PDF (15/36 Pages) Microchip Technology – Enhanced PIC16C54 EPROM-Based 8-Bit CMOS Microcontroller With On-Chip Voltage Regulator | |||
|
◁ |
PIC16HV540
MOVF
Move f
Syntax:
[ label ] MOVF f,d
Operands:
0 ⤠f ⤠31
d â [0,1]
Operation:
(f) â (dest)
Status Affected: Z
Encoding:
0010 00df ffff
Description:
The contents of register 'f' is moved to
destination 'd'. If 'd' is 0, destination is
the W register. If 'd' is 1, the destination
is ï¬le register 'f'. 'd' is 1 is useful to test
a ï¬le register since status ï¬ag Z is
affected.
Words:
1
Cycles:
1
Example:
MOVF FSR, 0
After Instruction
W = value in FSR register
MOVLW
Move Literal to W
Syntax:
[ label ] MOVLW k
Operands:
0 ⤠k ⤠255
Operation:
k â (W)
Status Affected: None
Encoding:
1100 kkkk kkkk
Description:
The eight bit literal 'k' is loaded into the
W register. The donât cares will assem-
ble as 0s.
Words:
1
Cycles:
1
Example:
MOVLW 0x5A
After Instruction
W = 0x5A
MOVWF
Move W to f
Syntax:
[ label ] MOVWF f
Operands:
0 ⤠f ⤠31
Operation:
(W) â (f)
Status Affected: None
Encoding:
0000 001f ffff
Description:
Move data from the W register to regis-
ter 'f'.
Words:
1
Cycles:
1
Example:
MOVWF TEMP_REG
Before Instruction
TEMP_REG =
W
=
0xFF
0x4F
After Instruction
TEMP_REG =
W
=
0x4F
0x4F
NOP
No Operation
Syntax:
[ label ] NOP
Operands:
None
Operation:
No operation
Status Affected: None
Encoding:
0000 0000
Description:
No operation.
Words:
1
Cycles:
1
Example:
NOP
0000
© 1998 Microchip Technology Inc.
Preliminary
DS40197A-page 15
|
▷ |