Rev. 1.20
74
�an�a�� 2�� 201�
Rev. 1.20
7�
�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
Compact Type TM Register Description
Overall operation of each Compact TM is controlled using several registers. A read only register
pair exists to store the internal counter 10-bit value, while a read/write register pair exists to store
the internal 10-bit CCRA value. The remaining two registers are control registers which setup the
different operating and control modes as well as the three CCRP bits.
Register
Name
Bit
7
6
5
4
3
2
1
0
CTM0C0 CT0PAU CT0CK2 CT0CK1 CT0CK0 CT0ON CT0RP2 CT0RP1
CT0RP0
CTM0C1
CT0M1
CT0M0
CT0IO1
CT0IO0
CT0OC CT0POL CT0DPX CT0CCLR
CTM0DL
D7
D6
D�
D4
D�
D2
D1
D0
CTM0DH
—
—
—
—
—
—
D9
D8
CTM0AL
D7
D6
D�
D4
D�
D2
D1
D0
CTM0AH
—
—
—
—
—
—
D9
D8
Compact TM Register List
CTM0C0 Register
Bit
7
6
5
4
3
2
1
0
Name
CT0PAU CT0CK2 CT0CK1 CT0CK0
CT0ON
CT0RP2 CT0RP1 CT0RP0
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
CT0PAU
: CTM0 Counter Pause Control
0: Run
1:
P
ause
The counter can be paused by setting this bit high. Clearing the bit to zero restores
normal counter operation. When in a Pause condition the C
TM
0 will remain powered
up and continue to consume power. The counter will retain its residual value when
this bit changes from low to high and resume counting from this value when the bit
changes to a low value again.
Bit 6~4
CT0CK2~CT0CK0
: Select CTM0 Counter clock
000: f
SYS
/4
001: f
SYS
010: f
H
/16
011: f
H
/64
100: f
SUB
101: f
SUB
110: TCK0 rising edge clock
111: TCK0 falling edge clock
These three bits are used to select the clock source for the CTM0. The external pin
clock source can be chosen to be active on the rising or falling edge. The clock source
f
SYS
is the system clock, while f
H
and f
SUB
are other internal clocks, the details of which
can be found in the oscillator section.
Содержание 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 ...