User`s guide
Rev. 1.10 2 November 14, 2014 Rev. 1.10 3 November 14, 2014
HT66FW2230
Wireless Charger A/D Flash 8-Bit MCU
EEPROM Data Memory .................................................................................. 27
EEPROM Data Memory Structure ........................................................................................ 27
EEPROM Registers .............................................................................................................. 27
Reading Data from the EEPROM ........................................................................................ 29
Writing Data to the EEPROM ................................................................................................ 29
Write Protection ..................................................................................................................... 29
EEPROM Interrupt ................................................................................................................ 29
Programming Considerations ................................................................................................ 30
Oscillator ........................................................................................................ 31
Oscillator Overview ............................................................................................................... 31
System Clock Congurations
................................................................................................ 31
External Crystal/ Ceramic Oscillator – HXT .......................................................................... 32
Internal RC Oscillator – HIRC ............................................................................................... 32
Internal 32kHz Oscillator – LIRC ........................................................................................... 32
Operating Modes and System Clocks ......................................................... 33
System Clocks ...................................................................................................................... 33
System Operation Modes ...................................................................................................... 34
Control Register .................................................................................................................... 35
Operating Mode Switching .................................................................................................... 36
NORMAL Mode to SLOW Mode Switching ........................................................................... 37
SLOW Mode to NORMAL Mode Switching ........................................................................... 37
Entering the SLEEP Mode .................................................................................................... 39
Entering the IDLE0 Mode ...................................................................................................... 39
Entering the IDLE1 Mode ...................................................................................................... 39
Entering the IDLE2 Mode ...................................................................................................... 40
Standby Current Considerations ........................................................................................... 40
Wake-up ................................................................................................................................ 41
Programming Considerations ................................................................................................ 41
Watchdog Timer ............................................................................................. 42
Watchdog Timer Clock Source .............................................................................................. 42
Watchdog Timer Control Register ......................................................................................... 42
Watchdog Timer Operation ................................................................................................... 43
Reset and Initialisation .................................................................................. 44
Reset Overview ..................................................................................................................... 44
Reset Functions .................................................................................................................... 45
Reset Initial Conditions ......................................................................................................... 48
Input/Output Ports ......................................................................................... 51
Pull-high Resistors ................................................................................................................ 51
Port A Wake-up ..................................................................................................................... 52
I/O Port Control Registers ..................................................................................................... 52
I/O Pin Structures .................................................................................................................. 53
Pin-sharing Functions ........................................................................................................... 54
Programming Considerations ................................................................................................ 57