Flash MCU. HT45F4N Datasheet

HT45F4N MCU. Datasheet pdf. Equivalent

HT45F4N Datasheet
Recommendation HT45F4N Datasheet
Part HT45F4N
Description Power Bank Flash MCU
Feature HT45F4N; Power Bank Flash MCU HT45F4N/HT45FH4N Revision: V1.30 Date: �D�e�c�e�mb��e�r�1��4,���2�0�1�6 HT45F4.
Manufacture Holtek Semiconductor
Datasheet
Download HT45F4N Datasheet




Holtek Semiconductor HT45F4N
Power Bank Flash MCU
HT45F4N/HT45FH4N
Revision: V1.30 Date: �D�e�c�e�mb��e�r�1��4,���2�0�1�6



Holtek Semiconductor HT45F4N
HT45F4N/HT45FH4N
Power Bank Flash MCU
Table of Contents
Features............................................................................................................. 6
CPU Features.......................................................................................................................... 6
Peripheral Features.................................................................................................................. 6
General Description.......................................................................................... 7
Selection Table.................................................................................................. 8
Block Diagram................................................................................................... 8
Pin Assignment................................................................................................. 9
Pin Descriptions..............................................................................................11
Absolute Maximum Ratings........................................................................... 17
D.C. Characteristics........................................................................................ 18
A.C. Characteristics........................................................................................ 19
SCOM Electrical Characteristics................................................................... 20
LVD & LVR Electrical Characteristics........................................................... 20
A/D Converter Electrical Characteristics...................................................... 21
Over Current Circuit Electrical Characteristics........................................... 21
Over/Under Voltage Circuit Electrical Characteristics................................ 22
USB Charge/Discharge Detection Electrical Characteristics..................... 22
LDO Regulator Electrical Characteristics.................................................... 23
Level Converter Electrical Characteristics................................................... 23
Power on Reset Electrical Characteristics................................................... 23
System Architecture....................................................................................... 24
Clocking and Pipelining.......................................................................................................... 24
Program Counter.................................................................................................................... 25
Stack...................................................................................................................................... 26
Arithmetic and Logic Unit – ALU............................................................................................ 26
Flash Program Memory.................................................................................. 27
Structure................................................................................................................................. 27
Special Vectors...................................................................................................................... 27
Look-up Table......................................................................................................................... 28
Table Program Example......................................................................................................... 28
In Circuit Programming.......................................................................................................... 29
On-Chip Debug Support – OCDS.......................................................................................... 30
RAM Data Memory.......................................................................................... 31
Structure................................................................................................................................. 31
Special Function Register Description......................................................... 33
Indirect Addressing Registers – IAR0, IAR1.......................................................................... 33
Memory Pointers – MP0, MP1............................................................................................... 33
Bank Pointer – BP.................................................................................................................. 34
Rev. 1.30
2 December 14, 2016



Holtek Semiconductor HT45F4N
HT45F4N/HT45FH4N
Power Bank Flash MCU
Accumulator – ACC................................................................................................................ 34
Program Counter Low Register – PCL................................................................................... 34
Look-up Table Registers – TBLP, TBHP, TBLH...................................................................... 34
Status Register – STATUS..................................................................................................... 35
EEPROM Data Memory................................................................................... 37
EEPROM Data Memory Structure......................................................................................... 37
EEPROM Registers............................................................................................................... 37
Reading Data from the EEPROM ......................................................................................... 39
Writing Data to the EEPROM................................................................................................. 39
Write Protection...................................................................................................................... 39
EEPROM Interrupt................................................................................................................. 39
Programming Considerations................................................................................................. 40
Oscillator......................................................................................................... 41
Oscillator Overview................................................................................................................ 41
System Clock Configurations................................................................................................. 41
Internal RC Oscillator – HIRC................................................................................................ 42
Internal 32kHz Oscillator – LIRC............................................................................................ 42
Operating Modes and System Clocks.......................................................... 42
System Clocks....................................................................................................................... 42
System Operation Modes....................................................................................................... 43
Control Register..................................................................................................................... 45
Operating Mode Switching .................................................................................................... 47
Standby Current Considerations............................................................................................ 50
Wake-up................................................................................................................................. 50
Watchdog Timer.............................................................................................. 51
Watchdog Timer Clock Source............................................................................................... 51
Watchdog Timer Control Register.......................................................................................... 51
Watchdog Timer Operation.................................................................................................... 52
Reset and Initialisation................................................................................... 53
Reset Functions..................................................................................................................... 53
Reset Initial Conditions.......................................................................................................... 56
Input/Output Ports.......................................................................................... 59
Pull-high Resistors................................................................................................................. 59
Port A Wake-up...................................................................................................................... 60
I/O Port Control Registers...................................................................................................... 61
Pin-remapping Functions....................................................................................................... 62
Pin-remapping Register......................................................................................................... 62
I/O Pin Structures................................................................................................................... 64
Programming Considerations................................................................................................. 65
Timer Modules – TM....................................................................................... 66
Introduction............................................................................................................................ 66
TM Operation......................................................................................................................... 66
TM Clock Source.................................................................................................................... 66
Rev. 1.30
3 December 14, 2016







@ 2014 :: Datasheetspdf.com :: Semiconductors datasheet search & download site (Privacy Policy & Contact)