fs3861 Fortune Semiconductor Corporation, fs3861 Datasheet - Page 29

no-image

fs3861

Manufacturer Part Number
fs3861
Description
Intelligent Charger Management Controller
Manufacturer
Fortune Semiconductor Corporation
Datasheet
GOTO
Syntax
Operation
Flag Affected
Description
Cycle
INCF
Syntax
Operation
Flag Affected
Description
Cycle
Example 1:
INCF OPERAND,0
Example 2:
INCF OPERAND,1
IORLW
Syntax
Operation
Flag Affected
Description
Cycle
Example:
IORLW
Fortune Semiconductor Corp.
85H
None
The immediate address is loaded
Unconditional Branch
GOTO
0 ≤ k ≤ 1FFFh
PC ← k
into PC.
2
Increment f
INCF
0 ≤ f ≤ FFh
d ∈ [0,1]
[Destination] ← [f] +1
Z
[f] is incremented. If d is 0, the
result is stored in the W register. If
d is 1, the result is stored back in
[f].
1
Before instruction:
After instruction:
W = 24h, OPERAND = 23h
Before instruction:
After instruction:
Inclusive OR literal with W
IORLW
0 ≤ k ≤ FFh
[W] ← [W] | k
Z
Inclusive OR the content of the W
register and the eight-bit literal
"k". The result is stored in the W
register.
1
Before instruction:
After instruction:
W = 88h, OPERAND = 23h
W = 88h, OPERAND = 23h
W = 88h, OPERAND = 24h
W = 69h
W = EDh
k
f, d
k
29/34
HALT
Syntax
Operation
Flag Affected
Description
Cycle
INCFSZ
Syntax
Operation
Flag Affected
Description
Cycle
Example:
Node INCFSZ FLAG, 1
OP1
OP2
IORWF
Syntax
Operation
Flag Affected
Description
Cycle
Example:
IORWF OPERAND,1
:
:
Stop CPU Core Clock
HALT
CPU Stop
None
CPU clock is stopped. Oscillator
is running. CPU can be waked up
by internal and external interrupt
sources.
1
Increment f, skip if zero
0 ≤ f ≤ FFh
d ∈ [0,1]
[Destination] ← [f] + 1, skip if the
result is zero
None
[f] is incremented. If d is 0, the
result is stored in the W register. If
d is 1, the result is stored back in
[f].
fetched instruction is discarded
and a NOP is executed instead of
making it a two-cycle instruction.
Before instruction:
After instruction:
Inclusive OR W with f
0 ≤ f ≤ FFh
d ∈ [0,1]
[Destination] ← [W] | [f]
Z
Inclusive OR the content of the W
register and [f]. If d is 0, the result
is stored in the W register. If d is
1, the result is stored back in [f].
1
Before instruction:
After instruction:
INCFSZ
1, 2
IORWF
If the result is 0, then the next
PC = address (Node)
[FLAG] = [FLAG] + 1
If [FLAG] = 0
If [FLAG] ≠ 0
W = 88h, OPERAND = 23h
W = 88h, OPERAND = ABh
PC = address(OP2)
PC = address(OP1)
f, d
f, d
FS3861
Rev. 1.0

Related parts for fs3861