fs3861 Fortune Semiconductor Corporation, fs3861 Datasheet - Page 27

no-image

fs3861

Manufacturer Part Number
fs3861
Description
Intelligent Charger Management Controller
Manufacturer
Fortune Semiconductor Corporation
Datasheet
BCF
Syntax
Operation
Flag Affected
Description
Cycle
Example:
BCF FLAG, 2
BTFSC
Syntax
Operation
Flag Affected
Description
Cycle
Example:
Node BTFSC FLAG, 2
OP1
OP2
CALL
Syntax
Operation
Flag Affected
Description
Cycle
Fortune Semiconductor Corp.
:
:
None
None
None
Bit Clear f
BCF
0 ≤ f ≤ FFh
0 ≤ b ≤ 7
[f<b>] ← 0
Bit b in [f] is reset to 0.
1
Before instruction:
After instruction:
Bit Test skip if Clear
BTFSC
0 ≤ f ≤ FFh
0 ≤ b ≤ 7
Skip if [f<b>] = 0
If bit 'b' in [f] is 0, the next fetched
instruction is discarded and a
NOP is executed instead of
making it a two-cycle instruction.
1, 2
Before instruction:
After instruction:
Subroutine CALL
CALL
0 ≤ k ≤ 1FFFh
Push Stack
[Top Stack] ← PC + 1
PC ← k
Subroutine Call. First, return
address PC + 1 is pushed onto
the stack. The immediate address
is loaded into PC.
2
FLAG = 8Dh
FLAG = 89h
PC = address (Node)
If FLAG<2> = 0
If FLAG<2> = 1
PC = address(OP2)
PC = address(OP1)
f, b
f, b
k
27/34
BSF
Syntax
Operation
Flag Affected
Description
Cycle
Example:
BSF FLAG, 2
BTFSS
Syntax
Operation
Flag Affected
Description
Cycle
Example:
Node BTFSS FLAG, 2
OP1
OP2
CLRF
Syntax
Operation
Flag Affected
Description
Cycle
Example:
CLRF WORK
:
:
Bit Set f
BSF
0 ≤ f ≤ FFh
0 ≤ b ≤ 7
[f<b>] ← 1
None
Bit b in [f] is set to 1.
1
Before instruction:
After instruction:
Bit Test skip if Set
BTFSS
0 ≤ f ≤ FFh
0 ≤ b ≤ 7
None
If bit 'b' in [f] is 1, the next fetched
instruction is discarded and a
NOP is executed instead of
making it a two-cycle instruction.
Before instruction:
After instruction:
Clear f
CLRF
0 ≤ f ≤ 255
[f] ← 0
None
Reset the content of memory
address f
1
Before instruction:
After instruction:
Skip if [f<b>] = 1
1, 2
FLAG = 89h
FLAG = 8Dh
PC = address (Node)
If FLAG<2> = 0
If FLAG<2> = 1
WORK = 5Ah
WORK = 00h
PC = address(OP1)
PC = address(OP2)
f, b
f, b
f
FS3861
Rev. 1.0

Related parts for fs3861