HT45F8566
Li-Battery Protection Flash MCU
Flash Program Memory......................................................................................31
Structure......................................................................................................................................31
Special Vectors ...........................................................................................................................31
Look-up Table..............................................................................................................................31
Table Program Example..............................................................................................................32
In Circuit Programming – ICP .....................................................................................................33
On-Chip Debug Support – OCDS ...............................................................................................33
In Application Programming – IAP ..............................................................................................34
Data Memory .......................................................................................................50
Structure......................................................................................................................................50
Data Memory Addressing............................................................................................................51
General Purpose Data Memory ..................................................................................................51
Special Purpose Data Memory ...................................................................................................51
Special Function Register Description.............................................................53
Indirect Addressing Registers – IAR0, IAR1, IAR2 .....................................................................53
Memory Pointers – MP0, MP1L, MP1H, MP2L, MP2H...............................................................53
Program Memory Bank Pointer – PBP........................................................................................54
Accumulator – ACC.....................................................................................................................55
Program Counter Low Byte Register – PCL................................................................................55
Look-up Table Registers – TBLP, TBHP, TBLH...........................................................................55
Option Memory Mapping Register – ORMC ...............................................................................55
Status Register – STATUS..........................................................................................................56
EEPROM Data Memory.......................................................................................58
EEPROM Data Memory Structure ..............................................................................................58
EEPROM Registers ....................................................................................................................58
Read Operation from the EEPROM............................................................................................60
Page Erase Operation to the EEPROM......................................................................................61
Write Operation to the EEPROM ................................................................................................61
Write Protection...........................................................................................................................63
EEPROM Interrupt ......................................................................................................................63
Programming Considerations......................................................................................................63
Oscillators ...........................................................................................................66
Oscillator Overview .....................................................................................................................66
System Clock Configurations......................................................................................................67
External Crystal/Ceramic Oscillator – HXT .................................................................................67
Internal High Speed RC Oscillator – HIRC .................................................................................68
External 32.768kHz Crystal Oscillator – LXT..............................................................................68
Internal 32kHz Oscillator – LIRC.................................................................................................70
Operating Modes and System Clocks ..............................................................70
System Clocks ............................................................................................................................70
System Operation Modes............................................................................................................71
Control Registers ........................................................................................................................72
Operating Mode Switching .........................................................................................................75
Rev. 1.10
3
September 01, 2023