fs3862 Fortune Semiconductor Corporation, fs3862 Datasheet - Page 27

no-image

fs3862

Manufacturer Part Number
fs3862
Description
8-bit Mcu With 1k Program Eprom, 64-byte Sram, 5-bit I/o Port, Intelligent Charger Management Controller
Manufacturer
Fortune Semiconductor Corporation
Datasheet
MOVFW
Syntax
Operation
Flag Affected
Description
Cycle
Example:
MOVFW OPERAND
MOVWF
Syntax
Operation
Flag Affected
Description
Cycle
Example:
MOVWF OPERAND
RETFIE
Syntax
Operation
Flag Affected
Description
Cycle
Rev. 1.3
Move f to W
MOVFW f
0 ≤ f ≤ FFh
[W] ← [f]
None
Move data from [f] to the W
register.
1
Before instruction:
After instruction:
Move W to f
MOVWF f
0 ≤ f ≤ FFh
[f] ← [W]
None
Move data from the W register to
[f].
1
Before instruction:
After instruction:
Return from Interrupt
RETFIE
[Top Stack] => PC
Pop Stack
1 => GIE
None
The program counter is loaded
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
MOVLW
Syntax
Operation
Flag Affected
Description
Cycle
Example:
MOVLW 23H
NOP
Syntax
Operation
Flag Affected
Description
Cycle
RETLW
Syntax
Operation
Flag Affected
Description
Move literal to W
MOVLW k
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 k
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
FS3862
27/32

Related parts for fs3862