
Rev. 1.10 2 November 04, 2019 Rev. 1.10 3 November 04, 2019
HT45F5Q-3
Battery Charger Flash MCU
HT45F5Q-3
Battery Charger Flash MCU
General Purpose Data Memory ..................................................................................................24
Special Purpose Data Memory ...................................................................................................25
Special Function Register Description............................................................. 26
Indirect Addressing Registers – IAR0, IAR1 ...............................................................................26
Memory Pointers – MP0, MP1 ....................................................................................................26
Bank Pointer – BP.......................................................................................................................27
Accumulator – ACC.....................................................................................................................27
Program Counter Low Register – PCL........................................................................................27
Look-up Table Registers – TBLP, TBHP, TBLH...........................................................................27
Status Register – STATUS ..........................................................................................................28
Emulated EEPROM Data Memory ..................................................................... 29
Emulated EEPROM Data Memory Structure ..............................................................................29
Emulated EEPROM Registers ....................................................................................................30
Erasing the Emulated EEPROM .................................................................................................33
Writing Data to the Emulated EEPROM......................................................................................33
Reading Data from the Emulated EEPROM ...............................................................................33
Programming Considerations......................................................................................................33
Oscillators ........................................................................................................... 35
Oscillator Overview .....................................................................................................................35
System Clock Congurations......................................................................................................35
Internal High Speed RC Oscillator – HIRC .................................................................................36
Internal 32kHz Oscillator – LIRC.................................................................................................36
Operating Modes and System Clocks .............................................................. 36
System Clocks ............................................................................................................................36
System Operation Modes............................................................................................................37
Control Registers ........................................................................................................................38
Operating Mode Switching ..........................................................................................................40
Standby Current Considerations .................................................................................................44
Wake-up......................................................................................................................................44
Watchdog Timer.................................................................................................. 45
Watchdog Timer Clock Source....................................................................................................45
Watchdog Timer Control Register ...............................................................................................45
Watchdog Timer Operation .........................................................................................................46
Reset and Initialisation....................................................................................... 47
Reset Functions ..........................................................................................................................47
Reset Initial Conditions ...............................................................................................................49
Input/Output Ports .............................................................................................. 52
Pull-high Resistors ......................................................................................................................52
Port A Wake-up ...........................................................................................................................53
I/O Port Control Registers ...........................................................................................................53
Pin-shared Functions ..................................................................................................................53
I/O Pin Structures........................................................................................................................58
READ PORT Function.................................................................................................................58
Programming Considerations......................................................................................................59