HT45F4N/HT45FH4N
Power Bank Flash MCU
TM Inteꢂꢂupts......................................................................................................................... ꢆ7
TM Exteꢂnal Pins................................................................................................................... ꢆ7
TM Input/Output Pin Contꢂol Registeꢂ................................................................................... ꢆ7
Pꢂogꢂaꢀꢀing Consideꢂations................................................................................................ 7ꢃ
Standard Type TM – STM .............................................................................. 75
Standaꢂd TM Opeꢂation......................................................................................................... 75
Standaꢂd Type TM Registeꢂ Des�ꢂiption ............................................................................... 7ꢆ
Standaꢂd Type TM Opeꢂating Modes.................................................................................... 80
Coꢀpaꢂe Output Mode.......................................................................................................... 80
Tiꢀeꢂ/Counteꢂ Mode ............................................................................................................. 83
PWM Output Mode................................................................................................................ 83
Single Pulse Output Mode .................................................................................................... 8ꢆ
Captuꢂe Input Mode .............................................................................................................. 88
Periodic Type TM – PTM................................................................................ 90
Peꢂiodi� TM Opeꢂation .......................................................................................................... 90
Peꢂiodi� Type TM Registeꢂ Des�ꢂiption................................................................................. 91
Peꢂiodi� Type TM Opeꢂating Modes...................................................................................... 95
Coꢀpaꢂe Mat�h Output Mode............................................................................................... 95
Tiꢀeꢂ/Counteꢂ Mode ............................................................................................................. 98
PWM Output Mode................................................................................................................ 98
Single Pulse Output Mode .................................................................................................. 100
Captuꢂe Input Mode ............................................................................................................ 10ꢅ
Analog to Digital Converter ........................................................................ 104
A/D Oveꢂview ...................................................................................................................... 10ꢃ
A/D Conveꢂteꢂ Registeꢂ Des�ꢂiption.................................................................................... 105
A/D Conveꢂteꢂ Data Registeꢂs – ADRLꢄ ADRH ................................................................... 105
A/D Conveꢂteꢂ Contꢂol Registeꢂs – ADCR0ꢄ ADCR1ꢄ ACERLꢄ ACERH .............................. 105
A/D Opeꢂation ......................................................................................................................110
A/D Input Pins ......................................................................................................................111
Suꢀꢀaꢂy of A/D Conveꢂsion Steps......................................................................................11ꢅ
Pꢂogꢂaꢀꢀing Consideꢂations...............................................................................................113
A/D Tꢂansfeꢂ Fun�tion ..........................................................................................................113
A/D Pꢂogꢂaꢀꢀing Exaꢀples................................................................................................11ꢃ
Complementary PWM Output .....................................................................116
Over Current Protection ..............................................................................118
OCP Fun�iton.......................................................................................................................118
OCP Ciꢂ�uit Opeꢂation .........................................................................................................118
Input Voltage Range.............................................................................................................119
OCP Registeꢂ.......................................................................................................................119
Offset Caliꢁꢂation ................................................................................................................ 1ꢅ7
Over Voltage Protection and Under Voltage Protection........................... 127
OUVP Registeꢂ.................................................................................................................... 1ꢅ8
USB Charge/Discharge Auto Detection..................................................... 131
USB0................................................................................................................................... 131
Rev. 1.30
ꢃ
De�eꢀꢁeꢂ 1ꢃꢄ ꢅ01ꢆ