Standard Type TM Register Description
Overall operation of the Standard TM is controlled using series of registers. A read only register
pair exists to store the internal counter 16-bit value, while a read/write register pair exists to store
the internal 16-bit CCRA value. The remaining two registers are control registers which setup the
different operating and control modes as well as eight CCRP bits.
Register
Name
7
STMC�
STPAU
STMC1
STM1
STMDL
D�
STMDH
D15
STMAL
D�
STMAH
D15
STMRP
D�
STMC0 Register
Bit
7
�a�e
STPAU
R/W
R/W
POR
�
Bit 7
STPAU: STM Counter Pause Control
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 TM 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
STCK2 ~ STCK0: Select STM Counter clock
000: f
001: f
010: f
011: f
100: f
101: f
110: STCK rising edge clock
111: STCK falling edge clock
These three bits are used to select the clock source for the TM. The external pin clock
source can be chosen to be active on the rising or falling edge. The clock source f
the system clock, while f
be found in the oscillator section.
STON: STM Counter On/Off Control
Bit 3
0: Off
1: On
This bit controls the overall on/off function of the TM. Setting the bit high enables the
counter to run, clearing the bit disables the TM. Clearing this bit to zero will stop the
counter from counting and turn off the TM 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.21
6
5
4
STCK2
STCK1
STCK�
STM�
STIO1
STIO�
D6
D5
D4
D14
D13
D12
D6
D5
D4
D14
D13
D12
D6
D5
D4
16-bit Standard TM Register List
6
5
4
STCK2
STCK1
STCK�
R/W
R/W
R/W
�
�
�
/4
SYS
SYS
/16
H
/64
H
TBC
TBC
and f
are other internal clocks, the details of which can
H
TBC
�6
HT66F488/HT66F489
A/D Flash MCU with EEPROM
Bit
3
2
1
STO�
—
—
STOC
STPOL
STDPX
D3
D2
D1
D11
D1�
D�
D3
D2
D1
D11
D1�
D�
D3
D2
D1
3
2
1
STO�
—
—
R/W
—
—
�
—
—
�ove��e� ��� 2�1�
0
—
STCCLR
D�
D8
D�
D8
D�
0
—
—
—
is
SYS
Need help?
Do you have a question about the HT66F488 and is the answer not in the manual?
Questions and answers