Compact Type Tm Register Description - Holtek BS86DH12C Manual

High voltage touch a/d flash mcu with hvio
Table of Contents

Advertisement

BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO

Compact Type TM Register Description

Overall operation of the Compact TM is controlled using a series of 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 set the different
operating and control modes as well as the three CCRP bits.
Register
Name
7
CTMnC0
CTnPAU
CTMnC1
CTnM1
CTMnDL
D7
CTMnDH
CTMnAL
D7
CTMnAH
• CTMnC0 Register
Bit
7
Name
CTnPAU
R/W
R/W
POR
0
CTnPAU: CTMn counter pause control
Bit 7
0: Run
1: Pause
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 CTMn 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
CTnCK2~CTnCK0: CTMn counter clock selection
000: f
001: f
010: f
011: f
100: f
101: f
110: CTCKn rising edge clock
111: CTCKn falling edge clock
These three bits are used to select the clock source for the CTMn. The external pin
clock source can be chosen to be active on the rising or falling edge. The clock source
f
SYS
can be found in the oscillator section.
Bit 3
CTnON: CTMn counter on/off control
0: Off
1: On
This bit controls the overall on/off function of the CTMn. Setting the bit high enables
the counter to run while clearing the bit disables the CTMn. Clearing this bit to zero
will stop the counter from counting and turn off the CTMn which will reduce its power
consumption. When the bit changes state from low to high the internal counter value
will be reset to zero, however when the bit changes from high to low, the internal
counter will retain its residual value until the bit returns high again.
Rev. 1.00
6
5
CTnCK2
CTnCK1
CTnCK0
CTnM0
CTnIO1
CTnIO0
D6
D5
D4
D6
D5
D4
10-bit Compact Type TM Register List (n=0~1)
6
5
CTnCK2
CTnCK1
CTnCK0
R/W
R/W
R/W
0
0
/4
SYS
SYS
/16
H
/64
H
SUB
SUB
is the system clock, while f
and f
H
81
Bit
4
3
2
CTnON
CTnRP2
CTnRP1
CTnOC
CTnPOL
CTnDPX CTnCCLR
D3
D2
D3
D2
4
3
2
CTnON
CTnRP2
CTnRP1
R/W
R/W
0
0
0
are other internal clocks, the details of which
SUB
1
0
CTnRP0
D1
D0
D9
D8
D1
D0
D9
D8
1
0
CTnRP0
R/W
R/W
0
0
October 26, 2018

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BS86DH12C and is the answer not in the manual?

Table of Contents