Rev. 1.71
4
April 11, 2017
Rev. 1.71
5
April 11, 2017
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
Introduction ........................................................................................................................... 66
TM Operation ........................................................................................................................ 66
TM Clock Source ................................................................................................................... 66
TM Interrupts ......................................................................................................................... 67
TM External Pins ................................................................................................................... 67
TM Input/Output Pin Control Register ................................................................................... 67
Programming Considerations ................................................................................................ 68
Standard TM Operation ......................................................................................................... 69
Standard Type TM Register Description ............................................................................... 70
Standard Type TM Operating Modes .................................................................................... 74
Compare Output Mode .......................................................................................................... 74
Timer/Counter Mode ............................................................................................................. 77
PWM Output Mode ................................................................................................................ 77
Single Pulse Mode ................................................................................................................ 80
Capture Input Mode .............................................................................................................. 82
Periodic TM Operation .......................................................................................................... 83
Periodic Type TM Register Description ................................................................................. 84
Periodic Type TM Operating Modes ...................................................................................... 88
Compare Match Output Mode ............................................................................................... 88
Timer/Counter Mode ............................................................................................................. 91
PWM Output Mode ................................................................................................................ 91
Single Pulse Output Mode .................................................................................................... 93
Capture Input Mode .............................................................................................................. 95
A/D Overview ........................................................................................................................ 97
A/D Converter Register Description ...................................................................................... 98
A/D Converter Data Registers – SADOL, SADOH ................................................................ 98
A/D Converter Control Registers – SADC0, SADC1, SADC2, PASR, PBSR ....................... 99
A/D Operation ..................................................................................................................... 101
A/D Converter Input Signal ................................................................................................. 102
Conversion Rate and Timing Diagram ................................................................................ 103
Summary of A/D Conversion Steps ..................................................................................... 104
Programming Considerations .............................................................................................. 105
A/D Transfer Function ......................................................................................................... 105
A/D Programming Examples ............................................................................................... 106