Datasheet HT45F5Q-3 (Holtek) - 7

ManufacturerHoltek
DescriptionBattery Charger Flash MCU
Pages / Page163 / 7 — HT45F5Q-3. Battery Charger Flash MCU. General Description
File Format / SizePDF / 2.7 Mb
Document LanguageEnglish

HT45F5Q-3. Battery Charger Flash MCU. General Description

HT45F5Q-3 Battery Charger Flash MCU General Description

Model Line for this Datasheet

Text Version of Document

HT45F5Q-3 HT45F5Q-3 Battery Charger Flash MCU Battery Charger Flash MCU General Description
The HT45F5Q-3 is a Flash Memory A/D type 8-bit high performance RISC architecture microcontroller especially designed for battery charger applications. Offering users the convenience of Flash Memory multi-programming features, this device also includes a wide range of functions and features. Other memory includes an area of RAM Data Memory as well as an area of Emulated EEPROM memory for storage of non-volatile data such as serial numbers, calibration data etc. Analog feature includes a multi-channel 12-bit A/D converter function. An extremely flexible Timer Module provides timing, pulse generation and PWM generation functions. Communication with the outside world is catered for by including fully integrated SPI, I2C and UART interface functions, three popular interfaces which provide designers with a means of easy communication with external peripheral hardware. Protective features such as an internal Watchdog Timer and Low Voltage Reset coupled with excellent noise immunity and ESD protection ensure that reliable operation is maintained in hostile electrical environments. A full choice of internal low and high speed oscillator functions is provided including a fully integrated system oscillator which requires no external components for its implementation. The ability to operate and switch dynamically between a range of operating modes using different clock sources gives users the ability to optimise microcontroller operation and minimise power consumption. For AC/DC charger applications, the device includes a battery charger management module, which can be used for the constant voltage and constant current closed loop charging control. The device therefore reduces the need for the usually required external TL431 component, operational amplifier and resistance analogic D/A Converter in traditional battery charging circuits. Therefore the peripheral circuit is more reduced, resulting in a smaller PCB area. The charger management module is composed of two parts. The first part contains two groups of OPAs and D/A Converters, which are used to control the charging voltage and current. The upper limit value of the charger constant current and constant voltage can be obtained by configuring the D/A Converters in the software. The 14-bit D/A Converter is used for constant current control while the 12-bit D/A Converter is used for constant voltage control. The second part of the charger management contains a fixed gain operational amplifier which is used for current amplification. This improves the current resolution and allows the use of smaller current detection resistors thus reducing the resistor power consumption. The D/A Converter in the charger management module is not only used for setting charging voltage and current, but also can be used together with the specific charger production fixtures for improving the traditional manual calibration techniques. By using the external production fixtures, the charger current voltage/current conditions can be confirmed. If the margin of errors is exceeded, the MCU will correct the error by fine tuning the D/A Converter, and store the corrected parameters to Emulated EEPROM. When the charger is recharged, the D/A Converter will be given a new correction value to implement correction purpose. Refer to the Holtek application notes for more details. The inclusion of flexible I/O programming features, Time-Base functions along with many other features, further enhance device functionality and flexibility for wide range of application possibilities. Rev. 1.00 6 July 31, 2019 Rev. 1.00 7 July 31, 2019 Document Outline Features CPU Features Peripheral Features General Description Block Diagram Pin Assignment Pin Description 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 Memory Characteristics LVR Electrical Characteristics A/D Converter Electrical Characteristics D/A Converter Electrical Characteristics Operational Amplifier Electrical Characteristics Software Controlled LCD Driver 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 Data Memory Structure General Purpose Data Memory Special Purpose Data Memory Special Function Register Description Indirect Addressing Registers – IAR0, IAR1 Memory Pointers – MP0, MP1 Bank Pointer – BP Accumulator – ACC Program Counter Low Register – PCL Look-up Table Registers – TBLP, TBHP, TBLH Status Register – STATUS Emulated EEPROM Data Memory Emulated EEPROM Data Memory Structure Emulated EEPROM Registers Erasing the Emulated EEPROM Writing Data to the Emulated EEPROM Reading Data from the Emulated EEPROM Programming Considerations 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 Pin-shared Functions I/O Pin Structures READ PORT Function 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 Operation Modes Standard Type TM – STM Standard TM Operation Standard Type TM Register Description Standard Type TM Operation Modes Analog to Digital Converter A/D Converter Overview A/D Converter Register Description A/D Converter Data Registers – SADOL, SADOH A/D Converter Reference Voltage A/D Converter Input Signal 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 Battery Charge Module Battery Charge Module Registers Digital to Analog Converter Operational Amplifiers Universal Serial Interface Module – USIM SPI Interface I2C Interface UART Interface Software Controlled LCD Driver LCD Operation LCD Bias Current Control Cyclic Redundancy Check – CRC CRC Registers CRC Operation Interrupts Interrupt Registers Interrupt Operation External Interrupts Time Base Interrupts Multi-function Interrupts TM Interrupts A/D Converter Interrupt USIM Interrupt Interrupt Wake-up Function Programming Considerations Application Descriptions Introduction Functional Description Hardware Circuit 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 Instruction Definition Package Information 24-pin SSOP (150mil) Outline Dimensions 28-pin SSOP (150mil) Outline Dimensions