Rev. 2.50 2 June 22, 2017 Rev. 2.50 3 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
EEPROM Data Memory .................................................................................. 44
EEPROM Data Memory Structure ........................................................................................ 44
EEPROM Registers
.............................................................................................................. 44
Reading Data from the EEPROM
......................................................................................... 48
Writing Data to the EEPROM
................................................................................................ 48
Write Protection
..................................................................................................................... 48
EEPROM Interrupt ................................................................................................................ 48
Programming Considerations
................................................................................................ 49
Programming Examples
........................................................................................................ 49
Oscillators ...................................................................................................... 50
Oscillator Overview ............................................................................................................... 50
System Clock Congurations
................................................................................................ 50
External Crystal/Ceramic Oscillator – HXT
........................................................................... 52
External RC Oscillator – ERC
............................................................................................... 53
Internal High Speed RC Oscillator – HIRC
........................................................................... 53
External 32.768kHz Crystal Oscillator – LXT ........................................................................ 54
Internal Low Speed Oscillator – LIRC
................................................................................... 55
Supplementary Oscillators .................................................................................................... 55
Operating Modes and System Clocks ......................................................... 56
System Clock ........................................................................................................................ 56
System Operation Modes
...................................................................................................... 58
Control Register
.................................................................................................................... 59
Fast Wake-up ........................................................................................................................ 61
Operating Mode Switching .................................................................................................... 62
Standby Current Considerations ........................................................................................... 66
Wake-up ................................................................................................................................ 67
Programming Considerations ................................................................................................ 67
Watchdog Timer ............................................................................................. 68
Watchdog Timer Clock Source .............................................................................................. 68
Watchdog Timer Control Register
......................................................................................... 68
Watchdog Timer Operation
................................................................................................... 69
Reset and Initialisation .................................................................................. 70
Reset Functions .................................................................................................................... 70
Reset Initial Conditions ......................................................................................................... 73
Input/Output Ports ......................................................................................... 83
Pull-high Resistors ................................................................................................................ 86
Port A Wake-up ..................................................................................................................... 88
I/O Port Control Registers
..................................................................................................... 88
Pin-remapping Functions ...................................................................................................... 91
Pin-remapping Registers ....................................................................................................... 91
I/O Pin Structures .................................................................................................................. 98
Programming Considerations
................................................................................................ 99