
Rev. 1.71 2 April 11, 2017 Rev. 1.71 3 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
EEPROM Data Memory.................................................................................. 32
EEPROM Data Memory Structure ........................................................................................ 32
EEPROM Registers .............................................................................................................. 33
Reading Data from the EEPROM ........................................................................................ 34
Writing Data to the EEPROM................................................................................................ 35
Write Protection..................................................................................................................... 35
EEPROM Interrupt ................................................................................................................ 35
Programming Considerations................................................................................................ 36
Oscillator ........................................................................................................ 37
Oscillator Overview ............................................................................................................... 37
System Clock Congurations................................................................................................ 37
Internal RC Oscillator – HIRC ............................................................................................... 38
Internal 32kHz Oscillator – LIRC........................................................................................... 38
Supplementary Oscillator ...................................................................................................... 38
Operating Modes and System Clocks ......................................................... 38
System Clocks ...................................................................................................................... 38
System Operation Modes...................................................................................................... 39
Control Register .................................................................................................................... 40
Operating Mode Switching .................................................................................................... 42
NORMAL Mode to SLOW Mode Switching ........................................................................... 43
SLOW Mode to NORMAL Mode Switching .......................................................................... 44
Entering the SLEEP0 Mode .................................................................................................. 44
Entering the SLEEP1 Mode .................................................................................................. 45
Entering the IDLE0 Mode...................................................................................................... 45
Entering the IDLE1 Mode...................................................................................................... 45
Standby Current Considerations ........................................................................................... 46
Wake-up................................................................................................................................ 46
Watchdog Timer............................................................................................. 47
Watchdog Timer Clock Source.............................................................................................. 47
Watchdog Timer Control Register ......................................................................................... 47
Watchdog Timer Operation ................................................................................................... 48
Reset and Initialisation.................................................................................. 49
Reset Functions .................................................................................................................... 50
Reset Initial Conditions ......................................................................................................... 53
Input/Output Ports ......................................................................................... 56
Pull-high Resistors ................................................................................................................ 57
Port A Wake-up ..................................................................................................................... 58
I/O Port Control Registers ..................................................................................................... 58
Pin-shared Functions ............................................................................................................ 59
I/O Pin Structures.................................................................................................................. 64
System Clock output pin CLO ............................................................................................... 65
Programming Considerations................................................................................................ 65