fs3862 Fortune Semiconductor Corporation, fs3862 Datasheet - Page 28

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
Return
Syntax
Operation
Flag Affected
Description
Cycle
RRF
Syntax
Operation
Flag Affected
Description
Cycle
Example:
RRF OPERAND, 0
Rev. 1.3
Return from Subroutine
RETURN
[Top Stack] => PC
Pop Stack
None
The program counter is loaded
from the top stack, then pop
stack.
2
Rotate right [f] through Carry
RRF f, d
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
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 f, d
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
FS3862
28/32

Related parts for fs3862