English
Language : 

HT83F22 Datasheet, PDF (59/158 Pages) Holtek Semiconductor Inc – A/D Type Recorder 8-Bit Flash MCU
HT83F22
A/D Type Recorder 8-Bit Flash MCU
The following steps show the read and write procedures:
●● Writing Data to CCRA
♦♦ Step 1. Write data to Low Byte TMxAL
–– note that here data is only written to the 8-bit buffer.
♦♦ Step 2. Write data to High Byte TMxAH
–– here data is written directly to the high byte registers and simultaneously data is latched
from the 8-bit buffer to the Low Byte registers.
●● Reading Data from the Counter Registers and CCRA
♦♦ Step 1. Read data from the High Byte TMxDH, TMxAH
––here data is read directly from the High Byte registers and simultaneously data is latched
from the Low Byte register into the 8-bit buffer.
♦♦ Step 2. Read data from the Low Byte TMxDL, TMxAL
–– this step reads data from the 8-bit buffer.
Compact Type TM
Although the simplest form of the TM types, the Compact TM type still contains three operating
modes, which are Compare Match Output, Timer/Event Counter and PWM Output modes. The
Compact TM can also be controlled with an external input pin and can drive one or two external
output pins. These two external output pins can be the same signal or the inverse signal.
Name
10-bit CTM
TM No.
0
TM Input Pin
TCK0
TM Output Pin
TP0_0, TP0_1
CCRP
3 - b it C o m p a r a to r P
C o m p a ra to r P M a tc h
T n P F In te rru p t
fS Y S /4
fS Y S
fH /1 6
fH /6 4
fT B C
R e s e rv e d
TC Kn
000
001
010
011
100
101
110
111
TnO N
TnP A U
TnC K 2~TnC K 0
b7~b9
1 0 - b it C o u n t- u p C o u n te r
C o u n te r C le a r 0
1
b0~b9
TnC C LR
1 0 - b it C o m p a r a to r A
C o m p a ra to r A M a tc h
TnO C
O u tp u t
C o n tro l
P o la r ity
C o n tro l
T P n P in
O u tp u t
TnM 1,TnM 0
T n IO 1 , T n IO 0
TnP O L
T n A F In te rru p t
CCRA
Compact Type TM Block Diagram
TP n_0
TP n_1
Compact TM Operation
At its core is a 10-bit count-up counter which is driven by a user selectable internal or external clock
source. There are also two internal comparators with the names, Comparator A and Comparator
P. These comparators will compare the value in the counter with CCRP and CCRA registers. The
CCRP is three bits wide whose value is compared with the highest three bits in the counter while the
CCRA is the ten bits and therefore compares with all counter bits.
The only way of changing the value of the 10-bit counter using the application program, is to
clear the counter by changing the TnON bit from low to high. The counter will also be cleared
automatically by a counter overflow or a compare match with one of its associated comparators.
When these conditions occur, a TM interrupt signal will also usually be generated. The Compact
Type TM can operate in a number of different operational modes, can be driven by different clock
sources including an input pin and can also control an output pin. All operating setup conditions are
selected using relevant internal registers.
Rev. 1.00
59
April 01, 2011