Datasheet BP45F4NB, BP45FH4NB (Holtek) - 4

ManufacturerHoltek
DescriptionPower Bank Flash MCU
Pages / Page206 / 4 — BP45F4NB/BP45FH4NB. Power Bank Flash MCU. Timer Modules – TM ...82. …
File Format / SizePDF / 3.1 Mb
Document LanguageEnglish

BP45F4NB/BP45FH4NB. Power Bank Flash MCU. Timer Modules – TM ...82. Compact Type TM – CTM ...85. Periodic Type TM – PTM ...95

BP45F4NB/BP45FH4NB Power Bank Flash MCU Timer Modules – TM ...82 Compact Type TM – CTM ...85 Periodic Type TM – PTM ...95

Model Line for this Datasheet

Text Version of Document

link to page 75 link to page 76 link to page 81 link to page 81 link to page 82 link to page 82 link to page 82 link to page 82 link to page 83 link to page 83 link to page 84 link to page 85 link to page 85 link to page 85 link to page 89 link to page 95 link to page 95 link to page 95 link to page 100 link to page 107 link to page 107 link to page 108 link to page 109 link to page 109 link to page 110 link to page 113 link to page 113 link to page 114 link to page 115 link to page 116 link to page 116 link to page 116 link to page 117 link to page 119 link to page 119 link to page 127 link to page 137 link to page 153 link to page 153 link to page 153 link to page 156 link to page 156
BP45F4NB/BP45FH4NB BP45F4NB/BP45FH4NB Power Bank Flash MCU Power Bank Flash MCU
I/O Port Source Current Control ..75 Pin-shared Functions ..76 I/O Pin Structure ..81 Programming Considerations ..81
Timer Modules – TM ...82
Introduction ...82 TM Operation ..82 TM Clock Source ...82 TM Interrupts ...83 TM External Pins ...83 Programming Considerations ..84
Compact Type TM – CTM ...85
Compact Type TM Operation ..85 Compact Type TM Register Description..85 Compact Type TM Operating Modes ..89
Periodic Type TM – PTM ...95
Periodic Type TM Operation..95 Periodic Type TM Register Description ...95 Periodic Type TM Operation Modes ..100
Complementary PWM Output with Dead Time ...107
Dead Time Insertion ..107 Complementary PWM Registers ...108
Analog to Digital Converter ...109
A/D Converter Overview ...109 A/D Converter Register Description .. 110 A/D Converter Reference Voltage ... 113 A/D Converter Input Signals .. 113 A/D Converter Operation ... 114 Conversion Rate and Timing Diagram .. 115 Summary of A/D Conversion Steps ... 116 Programming Considerations .. 116 A/D Conversion Function .. 116 A/D Conversion Programming Examples .. 117
Universal Serial Interface Module – USIM .. 119
SPI Interface ... 119 I2C Interface ..127 UART Interface..137
Over Current Protection ...153
Over Current Protection Operation ...153 Over Current Protection Registers ..153 Input Voltage Range ..156 OCP OPA and Comparator Offset Calibration ...156 Rev. 1.00 4 December 07, 2020 Rev. 1.00 5 December 07, 2020 Document Outline Features CPU Features Peripheral Features General Description Selection Table Block Diagram Pin Assignment Pin Description Level Shift Input/Output Relationship and Reset Condition Absolute Maximum Ratings D.C. Characteristics Operating Voltage Characteristics Operating Current Characteristics Standby Current Characteristics A.C. Characteristics High Speed Internal Oscillator – HIRC – Frequency Accuracy Low Speed Internal Oscillator Characteristics – LIRC Operating Frequency Characteristic Curves System Start Up Time Characteristics Input/Output Characteristics Input/Output (without Multi-power) D.C Characteristics Input/Output (with Multi-power) D.C Characteristics Memory Characteristics LVR/LVD Electrical Characteristics A/D Converter Electrical Characteristics Over/Under Voltage Protection Electrical Characteristics Over Current Protection Electrical Characteristics USB Auto Detection Electrical Characteristics LDO Regulator Electrical Characteristics Level Converter Electrical Characteristics Power-on Reset Characteristics System Architecture Clocking and Pipelining Program Counter Stack Arithmetic and Logic Unit – ALU Flash Program Memory Structure Special Vectors Look-up Table Table Program Example In Circuit Programming – ICP On-Chip Debug Support – OCDS In Application Programming – IAP Data Memory Structure Data Memory Addressing General Purpose Data Memory Special Purpose Data Memory Special Function Register Description Indirect Addressing Registers – IAR0, IAR1, IAR2 Memory Pointers – MP0, MP1L/MP1H, MP2L/MP2H Accumulator – ACC Program Counter Low Byte Register – PCL Look-up Table Registers – TBLP, TBHP, TBLH Option Memory Mapping Register – ORMC Status Register – STATUS Oscillators Oscillator Overview System Clock Configurations Internal High Speed RC Oscillator – HIRC Internal 32kHz Oscillator – LIRC Operating Modes and System Clocks System Clocks System Operation Modes Control Registers Operating Mode Switching Standby Current Considerations Wake-up Watchdog Timer Watchdog Timer Clock Source Watchdog Timer Control Register Watchdog Timer Operation Reset and Initialisation Reset Functions Reset Initial Conditions Input/Output Ports Pull-high Resistors Port A Wake-up I/O Port Control Registers I/O Port Power Source Control I/O Port Source Current Control Pin-shared Functions I/O Pin Structure Programming Considerations Timer Modules – TM Introduction TM Operation TM Clock Source TM Interrupts TM External Pins Programming Considerations Compact Type TM – CTM Compact Type TM Operation Compact Type TM Register Description Compact Type TM Operating Modes Periodic Type TM – PTM Periodic Type TM Operation Periodic Type TM Register Description Periodic Type TM Operation Modes Complementary PWM Output with Dead Time Dead Time Insertion Complementary PWM Registers Analog to Digital Converter A/D Converter Overview A/D Converter Register Description A/D Converter Reference Voltage A/D Converter Input Signals A/D Converter Operation Conversion Rate and Timing Diagram Summary of A/D Conversion Steps Programming Considerations A/D Conversion Function A/D Conversion Programming Examples Universal Serial Interface Module – USIM SPI Interface I2C Interface UART Interface Over Current Protection Over Current Protection Operation Over Current Protection Registers Input Voltage Range OCP OPA and Comparator Offset Calibration Over/Under Voltage Protection OUVP Circuit Operation OUVP Register Description OVP and UVP Comparator Offset calibration USB Auto Detection D1+/D1- and D2+/D2- for Auto Detection USB Auto Detection Registers Interrupts Interrupt Registers Interrupt Operation External Interrupts A/D Converter Interrupt Over Current Protection Interrupt Over Voltage Protection Interrupt Under Voltage Protection Interrupts Multi-function Interrupts Timer Module Interrupts USIM Interrupt Time Base Interrupts LVD Interrupt Interrupt Wake-up Function Programming Considerations Low Voltage Detector – LVD LVD Register LVD Operation Application Circuits Instruction Set Introduction Instruction Timing Moving and Transferring Data Arithmetic Operations Logical and Rotate Operation Branches and Control Transfer Bit Operations Table Read Operations Other Operations Instruction Set Summary Table Conventions Extended Instruction Set Instruction Definition Extended Instruction Definition Package Information 24-pin SSOP (150mil) Outline Dimensions 28-pin SSOP (150mil) Outline Dimensions SAW Type 28-pin QFN (4mm×4mm) Outline Dimensions