Rev. 1.20
100
�an�a�� 2�� 201�
Rev. 1.20
101
�an�a�� 2�� 201�
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
Register
Name
Bit
7
6
5
4
3
2
1
0
TKTMR
D7
D6
D�
D4
D�
D2
D1
D0
TKC0
—
TKRCOV
TKST
TKCFOV TK16OV
TSCS
TK16S1 TK16S0
TK16DL
D7
D6
D�
D4
D�
D2
D1
D0
TK16DH
D1�
D14
D1�
D12
D11
D10
D9
D8
TKC1
—
—
—
—
—
—
TKFS1
TKFS0
TKMn16DL
D7
D6
D�
D4
D�
D2
D1
D0
TKMn16DH
D1�
D14
D1�
D12
D11
D10
D9
D8
TKMnROL
D7
D6
D�
D4
D�
D2
D1
D0
TKMnROH
—
—
—
—
—
—
D9
D8
TKMnC0
MnMXS1 MnMXS0 MnDFEN MnFILEN MnSOFC MnSOF2 MnSOF1 MnSOF0
TKMnC1
MnTSS
—
MnROEN MnKOEN MnK4IO MnK�IO MnK2IO MnK1IO
Touch Key Module (n=0~4)
TKTMR Register
Bit
7
6
5
4
3
2
1
0
Name
D7
D6
D�
D4
D�
D2
D1
D0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
0
0
0
0
0
0
0
0
Bit 7~0
Touch Key 8-bit timer/counter register
Time slot counter overflow set-up time is (256-TKTMR[7:0])×32
TKC0 Register
Bit
7
6
5
4
3
2
1
0
Name
—
TKRCOV
TKST
TKCFOV TK16OV
TSCS
TK16S1
TK16S0
R/W
—
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
—
0
0
0
0
0
0
0
Bit 7
Unimplemented, read as "0"
Bit 6
TKRCOV
: Time slot counter overflow flag
0: No overflow
1: Overflow
If module 0 or
a
ll module time slot counter, selected by the TSCS bit, is overflow, the
Touch Key Interrupt request flag, TKMF, will be set and all module key OSCs and ref
OSCs auto stop. All module 16-bit C/F counter, 16-bit counter, 5-bit time slot counter
and 8-bit time slot timer counter will be automatically switched off.
Bit
5
TKST
: Start Touch Key detection control bit
0: Stopped
0->1: Started
In all modules the16-bit C/F counter, 16-bit counter, 5-bit time slot counter will
be automatically cleared when this bit is cleared to zero (8-bit programmable time
slot counter will not be cleared, which overflow time is setup by user). When this
bit changes from low to high, the 16-bit C/F counter, 16-bit counter, 5-bit time slot
counter and 8-bit time slot timer counter will be automatically on and enable key OSC
and ref OSC output clock input to these counters
.
Bit
4
TKCFOV
: Touch key module 16-bit C/F counter overflow flag
0: Not overflow
1: Overflow
This bit must be cleared by application program
.
Содержание BS82B12A-3
Страница 33: ...Rev 1 20 33 January 23 2015 BS82B12A 3 BS82C16A 3 BS82D20A 3 Touch Key 8 Bit Flash MCU with LED LCD Driver ...
Страница 34: ...Rev 1 20 34 January 23 2015 BS82B12A 3 BS82C16A 3 BS82D20A 3 Touch Key 8 Bit Flash MCU with LED LCD Driver ...
Страница 35: ...Rev 1 20 35 January 23 2015 BS82B12A 3 BS82C16A 3 BS82D20A 3 Touch Key 8 Bit Flash MCU with LED LCD Driver ...