Holtek HT45F6530 User manual

AC Voltage Regulator Flash MCU
HT45F6530
Revision: V1.00 Date: August 29, 2018

Rev. 1.00 2 August 29, 2018 Rev. 1.00 3 August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator Flash MCU
Table of Contents
Features............................................................................................................ 6
CPU Features ......................................................................................................................... 6
Peripheral Features................................................................................................................. 6
General Description......................................................................................... 7
Block Diagram.................................................................................................. 8
Pin Assignment................................................................................................ 8
Pin Description ................................................................................................ 9
Absolute Maximum Ratings...........................................................................11
D.C. Characteristics........................................................................................11
Operating Voltage Characteristics .........................................................................................11
Operating Current Characteristics..........................................................................................11
Standby Current Characteristics ........................................................................................... 12
A.C. Characteristics....................................................................................... 12
High Speed Internal Oscillator – HIRC – Frequency Accuracy ............................................. 12
Low Speed Internal Oscillator Characteristics – LIRC .......................................................... 13
System Start Up Time Characteristics .................................................................................. 13
Input/Output Characteristics ........................................................................ 14
Memory Characteristics ................................................................................ 14
LVR/LVD Electrical Characteristics.............................................................. 15
Internal Reference Voltage Characteristics................................................. 15
A/D Converter Electrical Characteristics..................................................... 16
PGA Electrical Characteristics .............................................................................................. 16
Over Current Protection Electrical Characteristics.................................... 17
D/A Converter Electrical Characteristics ............................................................................... 17
Operational Amplier Electrical Characteristics .................................................................... 17
Comparator Electrical Characteristics................................................................................... 19
Power-on Reset Characteristics................................................................... 20
System Architecture...................................................................................... 21
Clocking and Pipelining......................................................................................................... 21
Program Counter................................................................................................................... 22
Stack ..................................................................................................................................... 22
Arithmetic and Logic Unit – ALU ........................................................................................... 23
Flash Program Memory................................................................................. 23
Structure................................................................................................................................ 23
Special Vectors ..................................................................................................................... 24
Look-up Table........................................................................................................................ 24
Table Program Example........................................................................................................ 24
In Circuit Programming – ICP ............................................................................................... 25
On-Chip Debug Support – OCDS ......................................................................................... 26

Rev. 1.00 2 August 29, 2018 Rev. 1.00 3 August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator Flash MCU
Data Memory .................................................................................................. 27
Structure................................................................................................................................ 27
General Purpose Data Memory ............................................................................................ 27
Special Purpose Data Memory ............................................................................................. 28
Special Function Register Description........................................................ 29
Indirect Addressing Registers – IAR0, IAR1 ......................................................................... 29
Memory Pointers – MP0, MP1 .............................................................................................. 29
Bank Pointer – BP................................................................................................................. 30
Accumulator – ACC............................................................................................................... 30
Program Counter Low Register – PCL.................................................................................. 30
Look-up Table Registers – TBLP, TBLH................................................................................ 30
Status Register – STATUS.................................................................................................... 31
EEPROM Data Memory.................................................................................. 33
EEPROM Data Memory Structure ........................................................................................ 33
EEPROM Registers .............................................................................................................. 33
Reading Data from the EEPROM ......................................................................................... 34
Writing Data to the EEPROM................................................................................................ 35
Write Protection..................................................................................................................... 35
EEPROM Interrupt ................................................................................................................ 35
Programming Considerations................................................................................................ 35
Oscillators ...................................................................................................... 37
Oscillator Overview ............................................................................................................... 37
System Clock Congurations................................................................................................ 37
Internal High Speed RC Oscillator – HIRC ........................................................................... 38
Internal 32kHz Oscillator – LIRC........................................................................................... 38
Operating Modes and System Clocks ......................................................... 38
System Clocks ...................................................................................................................... 38
System Operation Modes...................................................................................................... 39
Control Register .................................................................................................................... 40
Operating Mode Switching .................................................................................................... 42
Standby Current Considerations ........................................................................................... 45
Wake-up................................................................................................................................ 45
Watchdog Timer............................................................................................. 46
Watchdog Timer Clock Source.............................................................................................. 46
Watchdog Timer Control Register ......................................................................................... 46
Watchdog Timer Operation ................................................................................................... 47
Reset and Initialisation.................................................................................. 48
Reset Functions .................................................................................................................... 48
Reset Initial Conditions ......................................................................................................... 50
Input/Output Ports ......................................................................................... 53
Pull-high Resistors ................................................................................................................ 53
Port A Wake-up ..................................................................................................................... 54
I/O Port Control Registers ..................................................................................................... 54
Pin-shared Functions ............................................................................................................ 54

Rev. 1.00 4 August 29, 2018 Rev. 1.00 5 August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator Flash MCU
I/O Pin Structures.................................................................................................................. 58
Programming Considerations................................................................................................ 59
Timer Module – TM ........................................................................................ 59
Introduction ........................................................................................................................... 59
TM Operation ........................................................................................................................ 59
TM Clock Source................................................................................................................... 60
TM Interrupts......................................................................................................................... 60
TM External Pins................................................................................................................... 60
Programming Considerations................................................................................................ 60
Compact Type TM – CTM .............................................................................. 62
Compact Type TM Operation ................................................................................................ 62
Compact Type TM Register Description................................................................................ 62
Compact Type TM Operation Modes .................................................................................... 66
Analog to Digital Converter .......................................................................... 72
A/D Converter Overview ....................................................................................................... 72
A/D Converter Register Description ...................................................................................... 73
A/D Converter Reference Voltage......................................................................................... 76
A/D Converter Input Signals.................................................................................................. 76
A/D Converter Operation....................................................................................................... 77
Conversion Rate and Timing Diagram .................................................................................. 78
Summary of A/D Conversion Steps....................................................................................... 79
Programming Considerations................................................................................................ 80
A/D Conversion Function ...................................................................................................... 80
A/D Conversion Programming Examples.............................................................................. 80
Over Current Protection – OCP .................................................................... 82
Over Current Protection Operation ....................................................................................... 82
Over Current Protection Registers ........................................................................................ 83
Offset Calibration Procedure................................................................................................. 87
Low Voltage Detector – LVD ......................................................................... 88
LVD Register ......................................................................................................................... 88
LVD Operation....................................................................................................................... 89
Interrupts ........................................................................................................ 90
Interrupt Registers................................................................................................................. 90
Interrupt Operation ................................................................................................................ 94
Over Current Protection Interrupts ........................................................................................ 95
External Interrupts................................................................................................................. 95
Multi-function Interrupts......................................................................................................... 96
Time Base Interrupts............................................................................................................. 96
A/D Converter Interrupt ......................................................................................................... 98
EEPROM Interrupt ................................................................................................................ 98
LVD Interrupt ......................................................................................................................... 98
TM Interrupt........................................................................................................................... 98
Interrupt Wake-up Function................................................................................................... 99
Programming Considerations................................................................................................ 99

Rev. 1.00 4 August 29, 2018 Rev. 1.00 5 August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator Flash MCU
Application Description .............................................................................. 100
Introduction ......................................................................................................................... 100
Functional Description......................................................................................................... 100
Hardware Block Diagram .................................................................................................... 101
Hardware Circuit Diagram................................................................................................... 101
Instruction Set.............................................................................................. 102
Introduction ......................................................................................................................... 102
Instruction Timing ................................................................................................................ 102
Moving and Transferring Data............................................................................................. 102
Arithmetic Operations.......................................................................................................... 102
Logical and Rotate Operation ............................................................................................. 103
Branches and Control Transfer ........................................................................................... 103
Bit Operations ..................................................................................................................... 103
Table Read Operations ....................................................................................................... 103
Other Operations................................................................................................................. 103
Instruction Set Summary ............................................................................ 104
Table Conventions............................................................................................................... 104
Instruction Denition................................................................................... 106
Package Information ....................................................................................115
20-pin NSOP (150mil) Outline Dimensions..........................................................................116
24-pin SOP (300mil) Outline Dimensions ............................................................................117
24-pin SSOP (150mil) Outline Dimensions ..........................................................................118

Rev. 1.00 6 August 29, 2018 Rev. 1.00 7 August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator Flash MCU
Features
CPU Features
• Operating voltage
♦fSYS=8MHz: 2.2V~5.5V
• Up to 0.5μs instruction cycle with 8MHz system clock at VDD=5V
• Power down and wake-up functions to reduce power consumption
• Oscillator types
♦Internal High Speed 8MHz RC – HIRC
♦Internal Low Speed 32kHz RC – LIRC
• Fully integrated internal oscillators require no external components
• Multi-mode operation: FAST, SLOW, IDLE and SLEEP
• All instructions executed in one or two instruction cycles
• Table read instructions
• 63 powerful instructions
• 4-level subroutine nesting
• Bit manipulation instruction
Peripheral Features
• Flash Program Memory: 2K×15
• RAM Data Memory: 128×8
• True EEPROM Memory: 32×8
• Watchdog Timer function
• 22 bidirectional I/O lines
• Two pin-shared external interrupts
• Multiple Timer Modules for time measurement, compare match output or PWM output functions
• Two over current protection (OCP) functions with interrupts
• Dual Time-Base functions for generation of xed time interrupt signals
• 6 external channels 12-bit resolution A/D converter
• Low voltage reset function
• Low voltage detect function
• Package types: 20-pin NSOP, 24-pin SOP/SSOP

Rev. 1.00 6 August 29, 2018 Rev. 1.00 7 August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator Flash MCU
General Description
The HT45F6530 device is a Flash Memory A/D type 8-bit high performance RISC architecture
microcontroller, specically designed for AC Automatic Voltage Regulator applications. Aimed at
relay type AVR product required measurement circuits, the device can accurately measure input
and output voltages, detect zero crossing points and the relay action delay time. These and other
calibration parameters can be stored using the internal true EEPROM. In being able to implement all
the important AVR functions the device is able to reduce the external component requirements and
reduce the product PCB area.
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 true EEPROM memory for storage of non-volatile data such as serial
numbers, calibration data etc.
Analog features include a multi-channel A/D converter function. Multiple extremely exible Timer
Modules provide timing, pulse generation and PWM generation functions. Protective features such
as an internal Watchdog Timer, Low Voltage Reset and Low Voltage Detector coupled with excellent
noise immunity and ESD protection ensure that reliable operation is maintained in hostile electrical
environments.
The device also includes fully integrated high and low speed oscillators which require no external
components for their 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.
Two over current protection circuits integrated in the device can be used to monitor the voltage
changes between input and output AC. Each OCP circuit contains an independent 12-bit D/A
converter, operational amplier and comparator. The input and output voltages can be respectively
measured by internally connecting to the 12-bit A/D converter. By using the internal comparator
and D/A converter an AC zero crossing interrupt trigger function can be implemented. By using
the internal timer a relay action delay time can be implemented. For more detailed application
development information, refer to the application description section or the Power Bank application
solutions on the Holtek website.
The inclusion of exible I/O programming features, Time-Base functions along with many other
features ensure that the device will nd excellent use in applications such as AC voltage regulators
in addition to many others.

Rev. 1.00 8 August 29, 2018 Rev. 1.00 9 August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator Flash MCU
Block Diagram
Bus
12-bit
ADC
Analog Peripherals
2 Over Current
Protection Circuits
Analog to Digital
Converter
M
U
X
VREF
AN0~
AN5
Pin-Shared
With Port C
Pin-Shared
With Port A
VDD
PGA VREFI
1.04V
VDD
VDD
VssVSS
Interrupt
Controller
Reset
Circuit
ROM
2K × 15
EEPROM
32 × 8
Watchdog
Timer
HT8 MCU Core
RAM
128 × 8
Stack
4-Level
LVD/LVR
INT0~
INT1
M
U
X
LIRC
32kHz
HIRC
8MHz
Pin-Shared
With Port A
SYSCLK
Clock System
Time
Bases
Port A
Driver
Port B
Driver
Port C
Driver
Pin-Shared
Function
PA0~PA7
PB0~PB7
PC0~PC5
I/O
Digital Peripherals
Timers
12-bit
DAC
OPA
VDD
VDD/2
VDD/4
VR
VR/2
VR/4
_
+
OPA0P~
OPA1P
OPA0N~
OPA1N
: Bus Entry : Pin-Shared Node
CMP
_
+
Pin Assignment
PA7/AN0
VSS
VDD
PB1/OPA1O
PB2/OPA0O
PB3/CMP0P
PB7/CMP1O/CTCK1
PB6/CMP1P
PC1/BUF_OUT0
PC2/OPA1P
PC3/OPA1N
PB0/BUF_OUT1
PC4/OPA0P
PC5/OPA0N
PA1/AN5/VREF
PA4/AN3/INT1
PA5/AN2
PA6/AN1
PA2/CTP1/VR0EXT/OCDSCK/ICPCK
PA0/CTP0/VR1EXT/INT0/OCDSDA/ICPDA
HT45F6530/HT45V6530
20 NSOP-A
20
19
18
17
16
15
14
13
12
11
1
2
3
4
5
6
7
8
9
10
PB5/CMP1N/CTP1B
PB7/CMP1O/CTCK1
PB6/CMP1P
PC0/CMP0O/CTCK0
PC1/BUF_OUT0
PC2/OPA1P
PC3/OPA1N
PB0/BUF_OUT1
PC4/OPA0P
PC5/OPA0N
PA2/CTP1/VR0EXT/OCDSCK/ICPCK
PA0/CTP0/VR1EXT/INT0/OCDSDA/ICPDA PA1/AN5/VREF
PA3/AN4/VREFI
PA4/AN3/INT1
PA5/AN2
PA6/AN1
PA7/AN0
VSS
VDD
PB1/OPA1O
PB2/OPA0O
PB3/CMP0P
PB4/CMP0N/CTP0B
HT45F6530/HT45V6530
24 SOP-A/24 SSOP-A
24
23
22
21
20
19
18
17
16
15
14
13
1
2
3
4
5
6
7
8
9
10
11
12
Note: 1. If the pin-shared pin functions have multiple outputs simultaneously, the desired pin-shared
function is determined by the corresponding software control bits.
2. The OCDSDA and OCDSCK pins are supplied as OCDS dedicated pins and as such only
available for the HT45V6530 device which is the OCDS EV chip for the HT45F6530 device.
3. For less pin-count package types there will be unbonded pins which should be properly
congured to avoid unwanted current consumption resulting from oating input conditions.
Refer to the “Standby Current Considerations” and “Input/Output Ports” sections.

Rev. 1.00 8 August 29, 2018 Rev. 1.00 9 August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator Flash MCU
Pin Description
With the exception of the power pins, all pins on the device can be referenced by their Port name,
e.g. PA0, PA1 etc., which refer to the digital I/O function of the pins. However these Port pins are
also shared with other function such as the Analog to Digital Converter, Timer Module pins etc.
The function of each pin is listed in the following table, however the details behind how each pin is
congured is contained in other sections of the datasheet.
Note that the pin description refers to the largest package size, as a result some pins may not exist on
smaller package types.
Pin Name Function OPT I/T O/T Description
PA0/CTP0/VR1EXT/
INT0/OCDSDA/ICPDA
PA0
PAPU
PAWU
PAS0
ST CMOS General purpose I/O. Register enabled pull-up and
wake-up
CTP0 PAS0 — CMOS CTM0 output
VR1EXT PAS0 AN — D/A Converter 1 reference voltage input
INT0
PAS0
INTEG
INTC0
ST — External Interrupt 0 input
OCDSDA — ST CMOS OCDS data/address, for EV chip only.
ICPDA — ST CMOS ICP data/address
PA1/AN5/VREF
PA1
PAPU
PAWU
PAS0
ST CMOS General purpose I/O. Register enabled pull-up and
wake-up
AN5 PAS0 AN — A/D Converter external input channel
VREF PAS0 AN — A/D Converter reference voltage input
PA2/CTP1/VR0EXT/
OCDSCK/ICPCK
PA2
PAPU
PAWU
PAS0
ST CMOS General purpose I/O. Register enabled pull-up and
wake-up
CTP1 PAS0 — CMOS CTM1 output
VR0EXT PAS0 AN — D/A Converter 0 reference voltage input
OCDSCK — ST — OCDS clock pin, for EV chip only.
ICPCK — ST — ICP clock pin
PA3/AN4/VREFI
PA3
PAPU
PAWU
PAS0
ST CMOS General purpose I/O. Register enabled pull-up and
wake-up
AN4 PAS0 AN — A/D Converter external input channel
VREFI PAS0 AN — A/D Converter PGA input
PA4/AN3/INT1
PA4
PAPU
PAWU
PAS1
ST CMOS General purpose I/O. Register enabled pull-up and
wake-up
AN3 PAS1 AN — A/D Converter external input channel
INT1
PAS1
INTEG
INTC2
ST — External Interrupt 1 input
PA5/AN2 PA5
PAPU
PAWU
PAS1
ST CMOS General purpose I/O. Register enabled pull-up and
wake-up
AN2 PAS1 AN — A/D Converter external input channel
PA6/AN1 PA6
PAPU
PAWU
PAS1
ST CMOS General purpose I/O. Register enabled pull-up and
wake-up
AN1 PAS1 AN — A/D Converter external input channel

Rev. 1.00 10 August 29, 2018 Rev. 1.00 11 August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator Flash MCU
Pin Name Function OPT I/T O/T Description
PA7/AN0 PA7
PAPU
PAWU
PAS1
ST CMOS General purpose I/O. Register enabled pull-up and
wake-up
AN0 PAS1 AN — A/D Converter external input channel
PB0/BUF_OUT1 PB0 PBPU
PBS0 ST CMOS General purpose I/O. Register enabled pull-up
BUF_OUT1 PBS0 — AN D/A Converter 1 output with buffer
PB1/OPA1O PB1 PBPU
PBS0 ST CMOS General purpose I/O. Register enabled pull-up
OPA1O PBS0 — AN Operational Amplier 1 output
PB2/OPA0O PB2 PBPU
PBS0 ST CMOS General purpose I/O. Register enabled pull-up
OPA0O PBS0 — AN Operational Amplier 0 output
PB3/CMP0P PB3 PBPU
PBS0 ST CMOS General purpose I/O. Register enabled pull-up
CMP0P PBS0 AN — Comparator 0 positive input
PB4/CMP0N/CTP0B
PB4 PBPU
PBS1 ST CMOS General purpose I/O. Register enabled pull-up
CMP0N PBS1 AN — Comparator 0 negative input
CTP0B PBS1 — CMOS CTM0 inverted output
PB5/CMP1N/CTP1B
PB5 PBPU
PBS1 ST CMOS General purpose I/O. Register enabled pull-up
CMP1N PBS1 AN — Comparator 1 negative input
CTP1B PBS1 — CMOS CTM1 inverted output
PB6/CMP1P PB6 PBPU
PBS1 ST CMOS General purpose I/O. Register enabled pull-up
CMP1P PBS1 AN — Comparator 1 positive input
PB7/CMP1O/CTCK1
PB7 PBPU
PBS1 ST CMOS General purpose I/O. Register enabled pull-up
CMP1O PBS1 — CMOS Comparator 1 output
CTCK1 PBS1 ST — CTM1 clock input
PC0/CMP0O/CTCK0
PC0 PCPU
PCS0 ST CMOS General purpose I/O. Register enabled pull-up
CMP0O PCS0 — CMOS Comparator 0 output
CTCK0 PCS0 ST — CTM0 clock input
PC1/BUF_OUT0 PC1 PCPU
PCS0 ST CMOS General purpose I/O. Register enabled pull-up
BUF_OUT0 PCS0 — AN D/A Converter 0 output with buffer
PC2/OPA1P PC2 PCPU
PCS0 ST CMOS General purpose I/O. Register enabled pull-up
OPA1P PCS0 AN — Operational Amplier 1 positive input
PC3/OPA1N PC3 PCPU
PCS0 ST CMOS General purpose I/O. Register enabled pull-up
OPA1N PCS0 AN — Operational Amplier 1 negative input
PC4/OPA0P PC4 PCPU
PCS1 ST CMOS General purpose I/O. Register enabled pull-up
OPA0P PCS1 AN — Operational Amplier 0 positive input
PC5/OPA0N PC5 PCPU
PCS1 ST CMOS General purpose I/O. Register enabled pull-up
OPA0N PCS1 AN — Operational Amplier 0 negative input

Rev. 1.00 10 August 29, 2018 Rev. 1.00 11 August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator Flash MCU
Pin Name Function OPT I/T O/T Description
VDD VDD — PWR — Positive power supply
VSS VSS — PWR — Negative power supply, ground
Legend: I/T: Input type; O/T: Output type;
OPT: Optional by register option; PWR: Power;
ST: Schmitt Trigger input; CMOS: CMOS output;
AN: Analog signal.
Absolute Maximum Ratings
Supply Voltage ...................................................................................................VSS-0.3V to VSS+6.0V
Input Voltage ..................................................................................................... VSS-0.3V to VDD+0.3V
Storage Temperature......................................................................................................-50˚C to 125˚C
Operating Temperature....................................................................................................-40˚C to 85˚C
IOH Total...................................................................................................................................... -80mA
IOL Total ....................................................................................................................................... 80mA
Total Power Dissipation ........................................................................................................... 500mW
Note: These are stress ratings only. Stresses exceeding the range specified under “Absolute
Maximum Ratings” may cause substantial damage to the device. Functional operation of the
device at other conditions beyond those listed in the specication is not implied and prolonged
exposure to extreme conditions may affect device reliability.
D.C. Characteristics
For data in the following tables, note that factors such as oscillator type, operating voltage, operating
frequency, pin load conditions, temperature and program instruction type, etc., can all exert an
inuence on the measured values.
Operating Voltage Characteristics
Ta=-40˚C~85˚C
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD
Operating Voltage – HIRC fSYS=fHIRC=8MHz 2.2 — 5.5 V
Operating Voltage – LIRC fSYS=fLIRC=32kHz 2.2 — 5.5 V
Operating Current Characteristics
Ta=25˚C
Symbol Operating Mode Test Conditions Min. Typ. Max. Unit
VDD Conditions
IDD
SLOW Mode – LIRC
2.2V
fSYS=32kHz
— 8 16
μA3V — 10 20
5V — 30 50
FAST Mode – HIRC
2.2V
fSYS=8MHz
— 0.6 1.0
mA3V — 0.8 1.2
5V — 1.6 2.4
Note: When using the characteristic table data, the following notes should be taken into consideration:
1. Any digital inputs are setup in a non-oating condition.
2. All measurements are taken under conditions of no load and with all peripherals in an off state.
3. There are no DC current paths.
4. All Operating Current values are measured using a continuous NOP instruction program loop.

Rev. 1.00 12 August 29, 2018 Rev. 1.00 13 August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator Flash MCU
Standby Current Characteristics
Ta=25˚C, unless otherwise specied
Symbol Standby Mode Test Conditions Min. Typ. Max. Max.
@85˚C Unit
VDD Conditions
ISTB
SLEEP Mode
2.2V
WDT off
— 0.2 0.6 0.7
μA3V — 0.2 0.8 1.0
5V — 0.5 1.0 1.2
2.2V
WDT on
— 1.2 2.4 2.9
μA3V — 1.5 3.0 3.6
5V — 3.0 5.0 6.0
IDLE0 Mode – LIRC
2.2V
fSUB on
— 2.4 4.0 4.8
μA3V — 3.0 5.0 6.0
5V — 5.0 10 12
IDLE1 Mode – HIRC
2.2V
fSUB on, fSYS=8MHz
— 288 400 480
μA3V — 360 500 600
5V — 600 800 960
Note: When using the characteristic table data, the following notes should be taken into consideration:
1. Any digital inputs are setup in a non-oating condition.
2. All measurements are taken under conditions of no load and with all peripherals in an off state.
3. There are no DC current paths.
4. All Standby Current values are taken after a HALT instruction execution thus stopping all instruction
execution.
A.C. Characteristics
For data in the following tables, note that factors such as oscillator type, operating voltage, operating
frequency and temperature etc., can all exert an inuence on the measured values.
High Speed Internal Oscillator – HIRC – Frequency Accuracy
During the program writing operation the writer will trim the HIRC oscillator at a user selected
HIRC frequency and user selected voltage of either 3V or 5V.
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Temp.
fHIRC 8MHz Writer Trimmed HIRC Frequency
3V/5V 25˚C -1% 8 +1%
MHz
-40˚C~85˚C -2% 8 +2%
2.2V~5.5V 25˚C -2.5% 8 +2.5%
-40˚C~85˚C -3% 8 +3%
Note: 1. The 3V/5V values for VDD are provided as these are the xed voltage at which the HIRC frequency is
trimmed by the writer.
2. The row below the 3V/5V trim voltage row is provided to show the values for the full VDD range operating
voltage. It is recommended that the trim voltage is xed at 3V for application voltage ranges from 2.2V
to 3.6V and xed at 5V for application voltage ranges from 3.3V to 5.5V.
3. The minimum and maximum tolerance values provided in the table are only for the frequency at which
the writer trims the HIRC oscillator.

Rev. 1.00 12 August 29, 2018 Rev. 1.00 13 August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator Flash MCU
Low Speed Internal Oscillator Characteristics – LIRC
Ta=25˚C, unless otherwise specied
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Temp.
fLIRC LIRC Frequency
5V 25˚C 25.6 32.0 38.4
kHz
2.2V~5.5V 25˚C 12.8 32.0 41.6
-40˚C~85˚C 8 32 60
tSTART LIRC Start Up Time — — — — 100 μs
System Start Up Time Characteristics
Ta=-40˚C~85˚C
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
tSST
System Start-up Time
Wake-up from condition where fSYS is off
— fSYS=fH~fH/64, fH=fHIRC — 16 — tHIRC
— fSYS=fSUB=fLIRC — 2 — tLIRC
System Start-up Time
Wake-up from condition where fSYS is on
— fSYS=fH~fH/64, fH=fHIRC — 2 — tH
— fSYS=fSUB=fLIRC — 2 — tSUB
System Speed Switch Time
FAST to SLOW Mode or
SLOW to FAST Mode
— fHIRC switches from off →on — 16 — tHIRC
tRSTD
System Reset Delay Time
Reset source from Power-on reset or
LVR hardware reset
— RRPOR=5V/ms
25 50 150 ms
System Reset Delay Time
WDTC software reset — —
System Reset Delay Time
Reset source from WDT overow — — 8.3 16.7 50.0 ms
tSRESET Minimum Software Reset Width to Reset — — 45 90 375 μs
Note: 1. For the System Start-up time values, whether fSYS is on or off depends upon the mode type and the chosen fSYS
system oscillator. Details are provided in the System Operating Modes section.
2. The time units, shown by the symbols tHIRC, tSYS etc. are the inverse of the corresponding frequency values as
provided in the frequency tables. For example tHIRC=1/fHIRC, tSYS=1/fSYS etc.
3. If the LIRC is used as the system clock and if it is off when in the SLEEP Mode, then an additional LIRC start
up time, tSTART, as provided in the LIRC frequency table, must be added to the tSST time in the table above.
4. The System Speed Switch Time is effectively the time taken for the newly activated oscillator to start up.

Rev. 1.00 14 August 29, 2018 Rev. 1.00 15 August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator Flash MCU
Input/Output Characteristics
Ta=25˚C
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
VIL Input Low Voltage for I/O Ports 5V —0.0 — 1.5 V
— 0.0 — 0.2VDD
VIH Input High Voltage for I/O Ports 5V —3.5 — 5.0 V
— 0.8VDD — VDD
IOL Sink Current for I/O Ports 3V VOL=0.1VDD
16 32 — mA
5V 32 65 —
IOH Source Current for I/O Ports 3V VOH=0.9VDD
-4 -8 — mA
5V -8 -16 —
RPH Pull-high Resistance for I/O Ports (Note) 3V —20 60 100 kΩ
5V 10 30 50
ILEAK Input Leakage Current 5V VIN=VDD or VIN=VSS ——±1 μA
tTCK TM TCK Input Pin Minimum Pulse Width — — 0.3 — —μs
tINT External Interrupt Minimum Pulse Width — —10 — —μs
Note: The RPH internal pull high resistance value is calculated by connecting to ground and enabling the input pin
with a pull-high resistor and then measuring the pin current at the specied supply voltage level. Dividing
the voltage by this measured current provides the RPH value.
Memory Characteristics
Ta=-40˚C~85˚C, unless otherwise specied
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
VRW VDD for Read/Write — — VDDmin — VDDmax V
Flash Program/Data EEPROM Memory
tDEW Erase/Write Cycle Time — — — 4 15 ms
IDDPGM Programming/Erase Current on VDD — — — — 5.0 mA
EPCell Endurance — — 100K — — E/W
tRETD ROM Data Retention Time — Ta=25˚C — 40 — Year
RAM Data Memory
VDR RAM Data Retention Voltage — Device in SLEEP Mode 1.0 — — V

Rev. 1.00 14 August 29, 2018 Rev. 1.00 15 August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator Flash MCU
LVR/LVD Electrical Characteristics
Ta=25˚C
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
VLVR Low Voltage Reset Voltage — LVR enable, voltage select 2.1V -5% 2.1 +5% V
VLVD Low Voltage Detection Voltage —
LVD enable, voltage select 2.0V
-5%
2.0
+5% V
LVD enable, voltage select 2.2V 2.2
LVD enable, voltage select 2.4V 2.4
LVD enable, voltage select 2.7V 2.7
LVD enable, voltage select 3.0V 3.0
LVD enable, voltage select 3.3V 3.3
LVD enable, voltage select 3.6V 3.6
LVD enable, voltage select 4.0V 4.0
ILVRLVDBG Operating Current
3V LVD enable, LVR enable,
VBGEN=0
——20
μA
5V — 20 25
3V LVD enable, LVR enable,
VBGEN=1
——25
5V — 25 30
ILVR Additional Current for LVR Enable — LVD disable, VBGEN=0 — —24 μA
ILVD Additional Current for LVD Enable — LVR disable, VBGEN=0 — —24 μA
tLVDS LVDO Stable Time —
For LVR enable, VBGEN=0,
LVD off → on ——18
μs
For LVR disable, VBGEN=0,
LVD off → on ——150
tLVR
Minimum Low Voltage Width to
Reset ——140 600 1000 μs
tLVD
Minimum Low Voltage Width to
Interrupt ——40 150 320 μs
Internal Reference Voltage Characteristics
Ta=25˚C, unless otherwise specied
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
VBG Bandgap Reference Voltage — —-5% 1.04 +5% V
IBG
Additional Current for Bandgap
Reference Enable — LVR disable, LVD disable — —25 μA
Note: 1. All the above parameters are measured under conditions of no load condition unless otherwise described.
2. A 0.1μF ceramic capacitor should be connected between VDD and GND.
3. The VBG voltage is used as the A/D converter PGA input signal.

Rev. 1.00 16 August 29, 2018 Rev. 1.00 17 August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator Flash MCU
A/D Converter Electrical Characteristics
Ta=-40˚C~85˚C, unless otherwise specied
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
VDD A/D Converter Operating Voltage — — 2.2 — 5.5 V
VADI A/D Converter Input Voltage — — 0 — VREF V
VREF A/D Converter Reference Voltage — — 2 — VDD V
DNL Differential Non-linearity
3V SAINS[3:0]=0000B,
SAVRS[1:0]=01B,
VREF=VDD, tADCK=0.5μs -3 — +3 LSB
5V
3V SAINS[3:0]=0000B,
SAVRS[1:0]=01B,
VREF=VDD, tADCK=10μs
5V
INL Integral Non-linearity
3V SAINS[3:0]=0000B,
SAVRS[1:0]=01B,
VREF=VDD, tADCK=0.5μs -4 — +4 LSB
5V
3V SAINS[3:0]=0000B,
SAVRS[1:0]=01B,
VREF=VDD, tADCK=10μs
5V
IADC
Additional Current for A/D Converter
Enable
3V No load, tADCK=0.5μs— 0.2 0.4 mA
5V — 0.3 0.6
tADCK A/D Clock Period — — 0.5 — 10 μs
tON2ST A/D Converter On-to-Start Time — — 4 — — μs
tADS A/D Sampling Time — — — 4 — tADCK
tADC
A/D Conversion Time
(Include A/D Sample and Hold Time) — — — 16 — tADCK
PGA Electrical Characteristics
Ta=-40˚C~85˚C, unless otherwise specied
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
VDD Operating Voltage — — 2.2 — 5.5 V
IPGA Additional Current for PGA Enable 3V No load — 270 550 μA
5V — 270 550 μA
VOR PGA Maximum Output Voltage Range 3V — VSS+0.1 — VDD-0.1 V
5V — VSS+0.1 — VDD-0.1 V
Ga PGA Gain Accuracy —Gain=1, VRI > 0.1V
Gain=2, 3, 4, VRI > 0.05V -5 — +5 %
VRI PGA Input Voltage Range
3V Gain=1, Ga < ±5% VSS+0.1 — VDD-0.1 V
5V VSS+0.1 — VDD-0.1
3V Gain=2, 3, 4
Ga < ±5%
VSS+0.05 — VOR(Max)
/Gain V
5V VSS+0.05 — VOR(Max)
/Gain

Rev. 1.00 16 August 29, 2018 Rev. 1.00 17 August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator Flash MCU
Over Current Protection Electrical Characteristics
D/A Converter Electrical Characteristics
Ta=-40˚C~85˚C, unless otherwise specied
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
VDD Operating Voltage — —2.2 — 5.5 V
VDACO Output Voltage Range — Code=000H VSS — VSS+0.2 V
Code=0FFFH VREF-0.2 — VREF
VREF Reference Voltage — —2 — VDD V
tST Settling Time 3V CLOAD=50pF ——5μs
5V — —5
DNL Differential Non-linearity 3V DACnVRS=0
VREF=VDD @ 25˚C
-6 —+6 LSB
5V -6 —+6
INL Integral Non-linearity 3V DACnVRS=0
VREF=VDD @ 25˚C
-5 —+5 LSB
5V -5 —+5
IDACOL Output Sink Current 3V Code=000H, VDACO=0.1VREF
1 — —mA
5V 2 — —
IDACOH Output Source Current 3V Code=0FFFH, VDACO=0.9VREF
0.4 — —mA
5V 1 — —
ISC Output Short-circuit Current 3V Code=0FFFH 2 — —mA
5V 6 — —
Operational Amplier Electrical Characteristics
Ta=-40˚C~85˚C, typical Ta=25˚C, unless otherwise specied
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
VDD Operating Voltage — — 2.2 — 5.5 V
IOPA Operating Current 5V
OPnBW[1:0]=00B, no load — 3.0 5.0
μA
OPnBW[1:0]=01B, no load — 10 16
OPnBW[1:0]=10B, no load — 80 128
OPnBW[1:0]=11B, no load — 200 320
VOS Input Offset Voltage 5V
Without calibration
(OnOF[5:0]=100000B) -15 — +15 mV
With calibration -6 — +6
IOS Input Offset Current 5V VIN=1/2VCM — 1 10 nA
VCM Common Mode Voltage Range 5V OPnBW[1:0]=00, 01, 10, 11 VSS — VDD-1.4 V
PSRR Power Supply Rejection Ratio 5V OPnBW[1:0]=00, 01, 10, 11 50 70 — dB
CMRR Common Mode Rejection Ratio 5V OPnBW[1:0]=00, 01, 10, 11 50 80 — dB
AOL Open Loop Gain 5V OPnBW[1:0]=00, 01, 10, 11 60 80 — dB
SR Slew Rate 5V
RLOAD=1MΩ, CLOAD=60pF,
OPnBW[1:0]=00 0.5 1.5 —
V/ms
RLOAD=1MΩ, CLOAD=60pF,
OPnBW[1:0]=01 5 15 —
RLOAD=1MΩ, CLOAD=60pF,
OPnBW[1:0]=10 180 500 —
RLOAD=1MΩ, CLOAD=60pF,
OPnBW[1:0]=11 600 1800 —

Rev. 1.00 18 August 29, 2018 Rev. 1.00 19 August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator Flash MCU
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
GBW Gain Bandwidth 5V
RLOAD=1MΩ, CLOAD=60pF,
OPnBW[1:0]=00 2.5 5 —
kHz
RLOAD=1MΩ, CLOAD=60pF,
OPnBW[1:0]=01 20 40 —
RLOAD=1MΩ, CLOAD=60pF,
OPnBW[1:0]=10 400 600 —
RLOAD=1MΩ, CLOAD=60pF,
OPnBW[1:0]=11 1300 2000 —
VOR Maximum Output Voltage Range 5V
OPnBW[1:0]=00, 01
RLOAD=5KΩ to VDD/2 VSS+140 — VDD-160
mV
OPnBW[1:0]=10, 11
RLOAD=5KΩ to VDD/2 VSS+120 — VDD-140
ISC Output Short Circuit Current 5V
RLOAD=5.1Ω, OPnBW[1:0]=00, 01
±6 ±12 — mA
RLOAD=5.1Ω, OPnBW[1:0]=10, 11
±10 ±20 —
Note: These parameters are characterized but not tested.
VDD=2.2V~5.5V, Ta=-40˚C~85˚C, typical VDD=5V and Ta=25˚C, unless otherwise specied
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
IOPA Operating Current —
OPnBW[1:0]=00B, no load — 2.5 4.0
μA
OPnBW[1:0]=01B, no load — 10 16
OPnBW[1:0]=10B, no load — 80 128
OPnBW[1:0]=11B, no load — 200 320
VOS Input Offset Voltage —
Without calibration
(OnOF[5:0]=100000B) -15 — +15 mV
With calibration -6 — +6
IOS Input Offset Current — VIN=1/2VCM — 1 10 nA
VCM Common Mode Voltage Range — OPnBW[1:0]=00, 01, 10, 11 VSS — VDD-1.4 V
PSRR Power Supply Rejection Ratio — OPnBW[1:0]=00, 01, 10, 11 50 70 — dB
CMRR Common Mode Rejection Ratio — OPnBW[1:0]=00, 01, 10, 11 50 80 — dB
AOL Open Loop Gain — OPnBW[1:0]=00, 01, 10, 11 60 80 — dB
SR Slew Rate —
RLOAD=1MΩ, CLOAD=60pF,
OPnBW[1:0]=00 0.5 1.5 —
V/ms
RLOAD=1MΩ, CLOAD=60pF,
OPnBW[1:0]=01 5 15 —
RLOAD=1MΩ, CLOAD=60pF,
OPnBW[1:0]=10 180 500 —
RLOAD=1MΩ, CLOAD=60pF,
OPnBW[1:0]=11 600 1800 —
GBW Gain Bandwidth —
RLOAD=1MΩ, CLOAD=60pF,
OPnBW[1:0]=00 2 5 —
kHz
RLOAD=1MΩ, CLOAD=60pF,
OPnBW[1:0]=01 15 40 —
RLOAD=1MΩ, CLOAD=60pF,
OPnBW[1:0]=10 250 600 —
RLOAD=1MΩ, CLOAD=60pF,
OPnBW[1:0]=11 800 2000 —

Rev. 1.00 18 August 29, 2018 Rev. 1.00 19 August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator Flash MCU
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
VOR Maximum Output Voltage Range —
OPnBW[1:0]=00, 01
RLOAD=5KΩ to VDD/2 VSS+80 — VDD-120
mV
OPnBW[1:0]=10, 11
RLOAD=5KΩ to VDD/2 VSS+40 — VDD-60
ISC Output Short Circuit Current —
RLOAD=5.1Ω,
OPnBW[1:0]=00,01 ±1.2 ±12 —
mA
RLOAD=5.1Ω,
OPnBW[1:0]=10,11 ±2 ±20 —
Note: These parameters are characterized but not tested.
Comparator Electrical Characteristics
Ta=25˚C
All measurement is under CMPnP input voltage=(VDD-1.4)/2 and remain constant
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
VDD Operating Voltage — — 2.7 — 5.5 V
ICMP Additional Current for Comparator Enable
3V CNVTn[1:0]=00B — — 3 μA
5V — 1 3
3V CNVTn[1:0]=01B — — 22 μA
5V — 14 22
3V CNVTn[1:0]=10B — — 57 μA
5V — 36 57
3V CNVTn[1:0]=11B — — 92 μA
5V — 58 92
VOS Input Offset Voltage
3V Without calibration
(CnOF[4:0]=10000B),
CNVTn[1:0]=00B
-10 — 10
mV
5V -10 — 10
3V With calibration,
CNVTn[1:0]=00B (1)
-4 — 4 mV
5V -4 — 4
VCM Common Mode Voltage Range — CNVTn[1:0]=00B VSS — VDD-1.4 V
AOL Open Loop Gain 3V CNVTn[1:0]=00B 60 — — dB
5V 60 80 —
VHYS Hysteresis 3V CNVTn[1:0]=00B 10 — 30 mV
5V 10 24 30

Rev. 1.00 20 August 29, 2018 Rev. 1.00 21 August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator Flash MCU
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
tRP Response Time
3V With 100mV overdrive (2),
CNVTn[1:0]=00B
— 20 40 μs
5V — 20 40
3V With 100mV overdrive (2),
CNVTn[1:0]=01B
— 1.2 3 μs
5V — 1.2 3
3V With 100mV overdrive (2),
CNVTn[1:0]=10B
— 0.5 1.5 μs
5V — 0.5 1.5
3V With 100mV overdrive (2),
CNVTn[1:0]=11B
— 0.3 1 μs
5V — 0.3 1
3V With 10mV overdrive (2),
CNVTn[1:0]=00B
— 25 40 μs
5V — 25 40
3V With 10mV overdrive (2),
CNVTn[1:0]=01B
— 1.5 4 μs
5V — 1.5 4
3V With 10mV overdrive (2),
CNVTn[1:0]=10B
— 0.8 2 μs
5V — 0.8 2
3V With 10mV overdrive (2),
CNVTn[1:0]=11B
— 0.7 1.5 μs
5V — 0.7 1.5
Note: 1. If VIN comparing threshold is lower than 250mV, the offset voltage could be over 4mV. It is recommended
to recalibrate the offset voltage rst when the comparing level is lower than 250mV.
2. Load Condition: CLOAD=50pF.
Load Condition
CLOAD
VSS
Pin
Power-on Reset Characteristics
Ta=25˚C
Symbol Parameter Test Conditions Min. Typ. Max. Unit
VDD Conditions
VPOR VDD Start Voltage to Ensure Power-on Reset — — — —100 mV
RRPOR VDD Rising Rate to Ensure Power-on Reset — —0.035 — —V/ms
tPOR
Minimum Time for VDD Stays at VPOR to
Ensure Power-on Reset ——1 — —ms
VDD
tPOR RRPOR
VPOR
Time
Table of contents
Other Holtek Storage manuals
Popular Storage manuals by other brands

Synology
Synology DiskStation DS1618+ Hardware installation guide

Sony
Sony Memory Stick PRO Duo MS-MT Series operating instructions

SMA
SMA SUNNY CENTRAL STORAGE 500 operating manual

Toshiba
Toshiba PH3064U-1EXB user guide

Seagate
Seagate BARRACUDA 9 ST19171DC installation guide

LaCie
LaCie 8BIG RACK THUNDERBOLT 2 user manual