Rev. 1.20
86
�an�a�� 2�� 201�
Rev. 1.20
87
�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
Periodic Type TM Register Description
Overall operation of the Periodic Type TM is controlled using a series of registers. A read only
register pair exists to store the internal counter 10-bit value, while two read/write register pairs exist
to store the internal 10-bit CCRA value and CCRP value. The remaining two registers are control
registers which setup the different operating and control modes.
Register
Name
Bit
7
6
5
4
3
2
1
0
PTM0C0
PT0PAU PT0CK2 PT0CK1 PT0CK0 PT0ON
—
—
—
PTM0C1
PT0M1
PT0M0
PT0IO1
PT0IO0
PT0OC PT0POL PT0CKS PT0CCLR
PTM0DL
D7
D6
D�
D4
D�
D2
D1
D0
PTM0DH
—
—
—
—
—
—
D9
D8
PTM0AL
D7
D6
D�
D4
D�
D2
D1
D0
PTM0AH
—
—
—
—
—
—
D9
D8
PTM0RPL
D7
D6
D�
D4
D�
D2
D1
D0
PTM0RPH
—
—
—
—
—
—
D9
D8
10-bit Periodic TM Register List
PTM0C0 Register
Bit
7
6
5
4
3
2
1
0
Name
PT0PAU PT0CK2 PT0CK1 PT0CK0
PT0ON
—
—
—
R/W
R/W
R/W
R/W
R/W
R/W
—
—
—
POR
0
0
0
0
0
—
—
—
Bit 7
PT0PAU
:
PTM
0 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
PTM1
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
PT0CK2 ~ PT0CK0
: Select
PTM
0 Counter clock
000: f
SYS
/4
001: f
SYS
010: f
H
/16
011: f
H
/64
100: f
SUB
101: f
SUB
110: TCK1 rising edge clock
111: TCK1 falling edge clock
These three bits are used to select the clock source for the
PTM
0. The external pin
clock source can be chosen to be active on the rasing 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 ...