
Rev. 1.40 2 November 23, 2016 Rev. 1.40 3 November 23, 2016
HT66F20-1/HT66F30-1/HT68F20-1/HT68F30-1
Flash MCU with EEPROM
HT66F20-1/HT66F30-1/HT68F20-1/HT68F30-1
Flash MCU with EEPROM
Special Function Register Description........................................................ 35
Indirect Addressing Registers – IAR0, IAR1 ......................................................................... 35
Memory Pointers – MP0, MP1 .............................................................................................. 35
Bank Pointer – BP................................................................................................................. 36
Accumulator – ACC............................................................................................................... 36
Program Counter Low Register – PCL.................................................................................. 36
Look-up Table Registers – TBLP, TBHP, TBLH..................................................................... 37
Status Register – STATUS.................................................................................................... 37
EEPROM Data Memory.................................................................................. 38
EEPROM Data Memory Structure ........................................................................................ 38
EEPROM Registers .............................................................................................................. 39
Reading Data from the EEPROM ......................................................................................... 41
Writing Data to the EEPROM................................................................................................ 41
Write Protection..................................................................................................................... 41
EEPROM Interrupt ................................................................................................................ 41
Programming Consideration ................................................................................................. 42
Programming Examples........................................................................................................ 42
Oscillator ........................................................................................................ 43
Oscillator Overview ............................................................................................................... 43
System Clock Congurations................................................................................................ 43
External Crystal/Ceramic Oscillator – HXT ........................................................................... 44
External RC Oscillator – ERC ............................................................................................... 45
Internal RC Oscillator – HIRC ............................................................................................... 45
External 32.768kHz Crystal Oscillator – LXT ........................................................................ 46
LXT Oscillator Low Power Function ...................................................................................... 47
Internal 32kHz Oscillator – LIRC........................................................................................... 47
Supplementary Clocks .......................................................................................................... 47
Operating Modes and System Clocks ......................................................... 48
System Clocks ...................................................................................................................... 48
System Operation Modes...................................................................................................... 50
Control Register .................................................................................................................... 51
Fast Wake-up........................................................................................................................ 52
Operating Mode Switching .................................................................................................... 54
Standby Current Considerations ........................................................................................... 57
Wake-up................................................................................................................................ 57
Programming Considerations................................................................................................ 58
Watchdog Timer............................................................................................. 58
Watchdog Timer Clock Source.............................................................................................. 58
Watchdog Timer Control Register ......................................................................................... 59
Watchdog Timer Operation ................................................................................................... 60
Reset and Initialisation.................................................................................. 61
Reset Functions .................................................................................................................... 61
Reset Initial Conditions ......................................................................................................... 64