fs3861 Fortune Semiconductor Corporation, fs3861 Datasheet - Page 30

no-image

fs3861

Manufacturer Part Number
fs3861
Description
Intelligent Charger Management Controller
Manufacturer
Fortune Semiconductor Corporation
Datasheet
MOVFW
Syntax
Operation
Flag Affected
Description
Cycle
Example:
MOVFW
MOVWF
Syntax
Operation
Flag Affected
Description
Cycle
Example:
MOVWF
RETFIE
Syntax
Operation
Flag Affected
Description
Cycle
Fortune Semiconductor Corp.
OPERAND
OPERAND
None
Move data from [f] to the W
None
None
The program counter is loaded
Move f to W
MOVFW
0 ≤ f ≤ FFh
[W] ← [f]
register.
1
Before instruction:
After instruction:
Move W to f
MOVWF
0 ≤ f ≤ FFh
[f] ← [W]
Move data from the W register to
[f].
1
Before instruction:
After instruction:
Return from Interrupt
RETFIE
[Top Stack] => PC
Pop Stack
1 => GIE
from the top stack, then pop
stack. Setting the GIE bit enables
interrupts.
2
W = 88h, OPERAND = 23h
W = 23h, OPERAND = 23h
W = 88h, OPERAND = 23h
W = 88h, OPERAND = 88h
f
f
30/34
MOVLW
Syntax
Operation
Flag Affected
Description
Cycle
Example:
MOVLW
NOP
Syntax
Operation
Flag Affected
Description
Cycle
RETLW
Syntax
Operation
Flag Affected
Description
23H
Move literal to W
MOVLW
0 ≤ k ≤ FFh
[W] ← k
None
Move the eight-bit literal "k" to the
content of the W register.
1
Before instruction:
After instruction:
No Operation
NOP
No Operation
None
No operation. NOP is used for
one instruction cycle delay.
1
Return and move literal to W
RETLW
0 ≤ k ≤ FFh
[W] ← k
[Top Stack] => PC
Pop Stack
None
Move the eight-bit literal "k" to the
content of the W register. The
program counter is loaded from
the top stack, then pop stack.
W = 88h
W = 23h
k
k
FS3861
Rev. 1.0

Related parts for fs3861