fs3861 Fortune Semiconductor Corporation, fs3861 Datasheet - Page 22

no-image

fs3861

Manufacturer Part Number
fs3861
Description
Intelligent Charger Management Controller
Manufacturer
Fortune Semiconductor Corporation
Datasheet
10.3.2.4. Timer Interrupt Register, LED output displays, and General I/O data bits
kept at 128KHz corresponding to INS[2:0]==3’b111. For example, if we want to use the timer clock at 64kHz, then
INS[2:0]== 3’b110 should be set to get the corresponding timer clock; and if we want the timer activated at the
divide-by-32 corresponding to TMOUT[7:0]==8’h20, the interrupt would be activated whenever the 64kHz clock
has the count equal to 32 (or 20H).
Fortune Semiconductor Corp.
Interrupt Source
TMOUT[7:0]
TMOUT
TMOUT [7:0] is the output of the 8-bit counter, read-only register.
TMCON
bit7
bit[6:4]
bit3
bit2[2:0]
INS[2:0] selects the interrupt source TMOUT[7:0], as shown below, where the timer clock’s master source is
LEDCTL : ADDRESS 12H
bit7
bit6
bit5
INS [2:0]
Interrupt
LED1EN
: ADDRESS 10H
: ADDRESS 11H
TRST: If set TRST=0, the MCU will reset the 8-bit counter. Then read TRST bit will get “1”.
unimplemented
TMEN: Counter enable
1 = The 8-bit counter will be enabled
0 = The 8-bit counter will be disabled
INS[2:0] selects timer interrupt source TMOUT[7:0] while
Timer Clock source = 4MHz/32 = 128 kHz.
LED1EN: LED1 enable bit
1 = Enabled LED1 control
0 = Disable LED1 control
LED1: LED1 output control
1 = Enable LED1 sink output (10mA)
0 = not used
LED0EN: LED0 enable bit
1 = Enabled LED0 control
0 = Disable LED0 control
bit7
bit7
TRST
TMOUT[0] TMOUT[1] TMOUT[2] TMOUT[3] TMOUT[4] TMOUT[5] TMOUT[6] TMOUT[7]
Timer Clock
TMOUT[0]
bit7
Source
000
LED1
bit6
bit6
bit6
Timer Clock
-
TMOUT[1] TMOUT[2] TMOUT[3] TMOUT[4] TMOUT[5] TMOUT[6] TMOUT[7]
Source/2
LED0EN
001
bit5
bit5
bit5
-
Timer Clock
Source/4
LED0
bit4
010
bit4
bit4
TMOUT [7:0]
-
Timer Clock
22/34
Source/8
bit3
-
011
TMEN
bit3
bit3
GPIO2OEN
Timer Clock
Source/16
INS[2]
bit2
100
bit2
bit2
Timer Clock
Source/32
INS[1]
GPIO2
bit1
bit1
bit1
101
INS[0]
GPIO2PU
Timer Clock
bit0
Source/64
bit0
bit0
110
FS3861
Timer Clock
Source/128
111
Rev. 1.0

Related parts for fs3861