Rev. 2.50 4 June 22, 2017 Rev. 2.50 5 June 22, 2017
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
HT66F20/HT66F30/HT66F40/HT66F50/HT66F60
HT66FU30/HT66FU40/HT66FU50/HT66FU60
A/D Flash MCU with EEPROM
Timer Modules – TM ...................................................................................... 99
Introduction ........................................................................................................................... 99
TM Operation
...................................................................................................................... 100
TM Clock Source ................................................................................................................. 100
TM Interrupts ....................................................................................................................... 100
TM External Pins ................................................................................................................. 101
TM Input/Output Pin Control Registers ............................................................................... 102
Programming Considerations ...............................................................................................111
Compact Type TM – CTM .............................................................................112
Compact TM Operation ........................................................................................................112
Compact Type TM Register Description...............................................................................113
Compact Type TM Operating Modes ...................................................................................117
Standard Type TM – STM ............................................................................ 123
Standard TM Operation ....................................................................................................... 123
Standard Type TM Register Description ............................................................................. 124
Standard Type TM Operating Modes .................................................................................. 133
Enhanced Type TM – ETM ........................................................................... 144
Enhanced TM Operation ..................................................................................................... 145
Enhanced Type TM Register Description ............................................................................ 145
Enhanced Type TM Operating Modes................................................................................. 152
Aanlog to Digital Converter ........................................................................ 169
A/D Overview ...................................................................................................................... 169
A/D Converter Register Description .................................................................................... 169
A/D Operation ..................................................................................................................... 175
A/D Input Pins ..................................................................................................................... 176
Summary of A/D Conversion Steps ..................................................................................... 176
Programming Considerations .............................................................................................. 178
A/D Transfer Function ......................................................................................................... 178
A/D Programming Example ................................................................................................. 179
Comparators ................................................................................................ 181
Comparator Operation ........................................................................................................ 181
Comparator Registers ......................................................................................................... 182
Comparator Interrupt ........................................................................................................... 184
Programming Considerations .............................................................................................. 184
Serial Interface Module – SIM ..................................................................... 185
SPI Interface ....................................................................................................................... 185
I
2
C Interface ........................................................................................................................ 192
Peripheral Clock Output .............................................................................. 201
Peripheral Clock Operation ................................................................................................. 201