Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

HT66F016 View Datasheet(PDF) - Holtek Semiconductor

Part Name
Description
MFG CO.
HT66F016
Holtek
Holtek Semiconductor Holtek
'HT66F016' PDF : 116 Pages View PDF
HT66F016/HT66F017/HT68F016/HT68F017
HT66F016R/HT66F017R/HT68F016R/HT68F017R
· TMPC Register
¨ HT66F016/HT68F016
Bit
7
6
5
4
3
2
1
0
Name
¾
¾
¾
¾
¾
¾
T1CP
¾
R/W
¾
¾
¾
¾
¾
¾
R/W
¾
POR
¾
¾
¾
¾
¾
¾
0
¾
Bit 7~2
Bit 1
Bit 0
Unimplemented, read as ²0²
T1CP: TP1 pin control
0: disable TP1 pin function
1: enable TP1 pin function
Unimplemented, read as ²0²
¨ HT66F017/HT68F017
Bit
7
6
5
4
3
2
1
0
Name
¾
¾
¾
¾
¾
¾
T1CP
T0CP
R/W
¾
¾
¾
¾
¾
¾
R/W
R/W
POR
¾
¾
¾
¾
¾
¾
0
0
Bit 7~2
Bit 1
Bit 0
Unimplemented, read as ²0²
T1CP: TP1 pin control
0: disable TP1 pin function
1: enable TP1 pin function
T0CP: TP0 Pin Control
0: Disable TP0 pin function
1: Enable TP0 pin function
Programming Considerations
The TM Counter Registers and the Capture/Compare
CCRA registers, being 16-bit, all have a low and high
byte structure. The high bytes can be directly accessed,
but as the low bytes can only be accessed via an inter-
nal 8-bit buffer, reading or writing to these register pairs
must be carried out in a specific way. The important
point to note is that data transfer to and from the 8-bit
buffer and its related low byte only takes place when a
write or read operation to its corresponding high byte is
executed. As the CCRA registers are implemented in
the way shown in the following diagram and accessing
these register pairs is carried out in a specific way de-
scribed above, it is recommended to use the ²MOV² in-
struction to access the CCRA low byte registers, named
TM Counter Register (Read only)
TMxDL TMxDH
8-bit
Buffer
TMxAL, using the following access procedures. Ac-
cessing the CCRA low byte registers without following
these access procedures will result in unpredictable val-
ues.
The following steps show the read and write proce-
dures:
· 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 si-
multaneously 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.
TMxAL TMxAH
TM CCRA Register (Read/Write)
Data
Bus
Rev. 1.40
52
November 22, 2016
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]