fs3861 Fortune Semiconductor Corporation, fs3861 Datasheet - Page 31

no-image

fs3861

Manufacturer Part Number
fs3861
Description
Intelligent Charger Management Controller
Manufacturer
Fortune Semiconductor Corporation
Datasheet
Return
Syntax
Operation
Flag Affected
Description
Cycle
RRF
Syntax
Operation
Flag Affected
Description
Cycle
Example:
RRF OPERAND, 0
Fortune Semiconductor Corp.
None
The program counter is loaded
Return from Subroutine
RETURN
[Top Stack] => PC
Pop Stack
from the top stack, then pop
stack.
2
Rotate right [f] through Carry
RRF
0 ≤ f ≤ FFh
d ∈ [0,1]
[Destination<n-1>] ← [f<n>]
[Destination<7>] ← C
C ← [f<7>]
C
[f] is rotated one bit to the
right through the Carry bit. 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:
C = 0
OPERAND = 95h
C = 1
W = 4Ah, OPERAND =
95h
f, d
31/34
RLF
Syntax
Operation
Flag Affected
Description
Cycle
Example:
RLF OPERAND, 1
SLEEP
Syntax
Operation
Flag Affected
Description
Cycle
Please make sure that all interrupt flags are cleared
before running SLEEP; "NOP" command must follow
HALT and SLEEP commands.
Oscillator stop
SLEEP
CPU oscillator is stopped
PD
CPU oscillator is stopped. CPU
can be waked up by external
interrupt sources.
1
Rotate left [f] through Carry
RLF
0 ≤ f ≤ FFh
d ∈ [0,1]
[Destination<n+1>] ← [f<n>]
[Destination<0>] ← C
C ← [f<7>]
C, Z
[f] is rotated one bit to the left
through the Carry bit. 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:
C = 0
W = 88h, OPERAND =
E6h
C = 1
W = 88h, OPERAND =
CCh
FS3861
f, d
Rev. 1.0

Related parts for fs3861