Sign In
Upload
Download
Table of Contents
Contents
Add to my manuals
Delete from my manuals
Share
URL of this page:
HTML Link:
Bookmark this page
Add
Manual will be automatically added to "My Manuals"
Print this page
×
Bookmark added
×
Added to my manuals
Manuals
Brands
Holtek Manuals
Control Unit
HT66F004
Manual
Holtek HT66F004 Manual
Cost-effective a/d flash mcu with eeprom
Hide thumbs
1
Table Of Contents
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
page
of
144
Go
/
144
Contents
Table of Contents
Bookmarks
Table of Contents
Table of Contents
Features
CPU Features
Peripheral Features
General Description
Selection Table
Block Diagram
Pin Assignment
Pin Description
Absolute Maximum Ratings
D.C. Characteristics
Characteristics
ADC Electrical Characteristics
OPA Electrical Characteristics
LVR Electrical Characteristics
LCD Electrical Characteristics - HT66F004
Power on Reset Electrical Characteristics
System Architecture
Clocking and Pipelining
Program Counter
Stack
Arithmetic and Logic Unit - ALU
Flash Program Memory
Structure
Special Vectors
Look-Up Table
In Circuit Programming - ICP
On-Chip Debug Support - OCDS
RAM 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, TBLH
Status Register - STATUS
EEPROM Data Memory
EEPROM Data Memory Structure
EEPROM Registers
Reading Data from the EEPROM
Writing Data to the EEPROM
Write Protection
EEPROM Interrupt
Programming Considerations
Oscillator
Oscillator Overview
System Clock Configurations
Internal RC Oscillator - HIRC
Internal 32Khz Oscillator - LIRC
Supplementary Oscillator
Operating Modes and System Clocks
System Clocks
System Operation Modes
Control Register
Operating Mode Switching
NORMAL Mode to SLOW Mode Switching
SLOW Mode to NORMAL Mode Switching
Entering the SLEEP0 Mode
Entering the SLEEP1 Mode
Entering the IDLE0 Mode
Entering the IDLE1 Mode
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
System Clock Output Pin CLO
Programming Considerations
Timer Modules - TM
Introduction
TM Operation
TM Clock Source
TM Interrupts
TM External Pins
TM Input/Output Pin Control Register
Programming Considerations
Standard Type TM - STM
Standard TM Operation
Standard Type TM Register Description
Standard Type TM Operating Modes
Compare Output Mode
Timer/Counter Mode
PWM Output Mode
Single Pulse Mode
Capture Input Mode
Periodic Type TM - PTM
Periodic TM Operation
Periodic Type TM Register Description
Periodic Type TM Operating Modes
Compare Match Output Mode
Timer/Counter Mode
PWM Output Mode
Single Pulse Output Mode
Capture Input Mode
Analog to Digital Converter
A/D Overview
A/D Converter Register Description
A/D Converter Data Registers - SADOL, SADOH
A/D Converter Control Registers - SADC0, SADC1, SADC2, PASR, PBSR
A/D Operation
A/D Converter Input Signal
Conversion Rate and Timing Diagram
Summary of A/D Conversion Steps
Programming Considerations
A/D Transfer Function
A/D Programming Examples
Interrupts
Interrupt Registers
Interrupt Operation
External Interrupt
Multi-Function Interrupt
A/D Converter Interrupt
Time Base Interrupts
EEPROM Interrupt
TM Interrupts
Interrupt Wake-Up Function
Programming Considerations
SCOM Function for LCD - HT66F004
LCD Peration
LCD Bias Current Control
Application Circuits
Instruction Set
Introduction
Instruction Timing
Moving and Transferring Data
Arithmetic Operations
Logical and Rotate Operation
Branches and Control Transfer
Bit Operations
Other Operations
Instruction Set Summary
Instruction Definition
Package Information
8-Pin SOP (150Mil) Outline Dimensions
10-Pin SOP (150Mil) Outline Dimensions
10-Pin MSOP Outline Dimensions
16-Pin NSOP (150Mil) Outline Dimensions
20-Pin DIP (300Mil) Outline Dimensions
20-Pin SOP (300Mil) Outline Dimensions
20-Pin SSOP (150Mil) Outline Dimensions
Advertisement
Quick Links
1
Cpu Features
2
General Description
3
Pin Assignment
4
Block Diagram
Download this manual
Cost-Effective A/D Flash MCU with EEPROM
HT66F002/HT66F0025/HT66F003/HT66F004
Revision: V1.71
Date: April 11, 2017
Table of
Contents
Previous
Page
Next
Page
1
2
3
4
5
Advertisement
Table of Contents
Need help?
Do you have a question about the HT66F004 and is the answer not in the manual?
Ask a question
Questions and answers
Related Manuals for Holtek HT66F004
Control Unit Holtek HT66F002 Manual
Cost-effective a/d flash mcu with eeprom (144 pages)
Control Unit Holtek HT66F2740 Manual
12v high current flash mcu (202 pages)
Control Unit Holtek HT16H25 Application Manuallines
Treadmill display application guideline (23 pages)
Control Unit HOLTEK ESK32-A2A31 User Manual
2.8 inch tft lcd module (12 pages)
Summarization of Contents
Features
CPU Features
Details on the Central Processing Unit's capabilities and performance metrics.
Peripheral Features
Overview of the microcontroller's integrated peripherals and their functionalities.
General Description
Selection Table
Table summarizing key features and specifications for different device models.
Block Diagram
Pin Assignment
Illustrates the physical pinout and numbering for various package types.
Pin Description
Absolute Maximum Ratings
D.C. Characteristics
A.C. Characteristics
ADC Electrical Characteristics
OPA Electrical Characteristics
LVR Electrical Characteristics
LCD Electrical Characteristics – HT66F004
Power on Reset Electrical Characteristics
System Architecture
Clocking and Pipelining
Explanation of the internal clock system and the pipelined instruction execution.
Flash Program Memory
Structure
Details on the organization and addressing of the flash program memory.
Special Vectors
Reserved memory locations for reset and interrupt vectors.
Look-up Table
Method for storing and retrieving fixed data from program memory.
Table Program Example
Illustrative example demonstrating the use of look-up tables.
In Circuit Programming – ICP
On-Chip Debug Support – OCDS
RAM Data Memory
Structure
Organization of RAM into special function and general purpose areas.
General Purpose Data Memory
Description of the user-accessible RAM for temporary data storage.
Special Purpose Data Memory
Details on registers critical for microcontroller operation.
Special Function Register Description
Indirect Addressing Registers – IAR0, IAR1
Registers used for indirect addressing of data memory locations.
Memory Pointers – MP0, MP1
Memory pointers facilitating indirect data access and tracking.
Bank Pointer – BP
Accumulator – ACC
Program Counter Low Register – PCL
Look-up Table Registers – TBLP, TBLH
Status Register – STATUS
EEPROM Data Memory
EEPROM Data Memory Structure
Details on the organization and capacity of the EEPROM memory.
EEPROM Registers
EEPROM Control Registers List
List of registers controlling EEPROM operations.
EEA Register
EEPROM address register for data memory access.
EED Register
EEPROM data register for reading and writing data.
EEC Register
Control register for EEPROM write and read operations.
Reading Data from the EEPROM
Writing Data to the EEPROM
Write Protection
EEPROM Interrupt
Programming Considerations
Oscillator
Oscillator Overview
General description of the internal oscillator system.
System Clock Configurations
Methods for generating and configuring the system clock.
Operating Modes and System Clocks
System Clocks
System Operation Modes
Control Register
SMOD1 Register
Operating Mode Switching
NORMAL Mode to SLOW Mode Switching
SLOW Mode to NORMAL Mode Switching
Entering the SLEEP0 Mode
Entering the SLEEP1 Mode
Entering the IDLE0 Mode
Entering the IDLE1 Mode
Standby Current Considerations
Wake-up
Watchdog Timer
Watchdog Timer Clock Source
Selection of the clock source for the Watchdog Timer.
Watchdog Timer Control Register
Register for controlling Watchdog Timer operation and timeout periods.
Watchdog Timer Operation
Reset and Initialisation
Reset Functions
Power-on Reset
Procedure and timing for reset upon initial power application.
RES Pin Reset
Using the RES pin for external reset functionality.
Low Voltage Reset – LVR
Watchdog Time-out Reset during Normal Operation
Watchdog Time-out Reset during SLEEP or IDLE Mode
Reset Initial Conditions
Input/Output Ports
I/O Control Register List
Registers for configuring the direction (input/output) of I/O pins.
Pull-high Resistors
Port Pull-up Control Registers
Registers to enable/disable internal pull-high resistors for I/O pins.
PCPU Register
Port A Wake-up
PAWU Register
Register to configure Port A pins for wake-up functionality.
I/O Port Control Registers
Port A, B, C Control Registers
Registers (PAC, PBC, PCC) for setting I/O pin direction.
PBC Register – HT66F003
PBC Register – HT66F004
PCC Register – HT66F004
Pin-shared Functions
PASR Register
Register for configuring Port A pin-shared functions.
PBSR Register
Register for configuring Port B pin-shared functions.
IFS0 Register
Register for interrupt and timer pin-sharing control.
I/O Pin Structures
Generic Input/Output Structure
Illustrates the internal structure of a generic I/O pin.
A/D Input/Output Structure
Illustrates the internal structure of an I/O pin used for ADC input.
System Clock output pin CLO
Programming Considerations
Timer Modules – TM
Introduction
Introduction to the Timer Modules (TMs) and their functions.
TM Operation
Explanation of how the Timer Modules operate.
TM Clock Source
Details on selecting clock sources for the Timer Modules.
TM Interrupts
TM External Pins
TM Input/Output Pins
TM Input/Output Pin Control Register
Register for selecting TM input/output pin functions.
Programming Considerations
Standard Type TM – STM
Standard TM Operation
Explanation of the operation of the Standard Timer Module.
Standard Type TM Register Description
STM0C0 Register
STM0 control register 0 for mode and clock selection.
STM0C1 Register
STM0 control register 1 for operating modes and output functions.
STM0DL Register
STM0DH Register
STM0AL Register
STM0AH Register
PTMnRPL Register
Standard Type TM Operating Modes
Compare Output Mode
STM operating mode for compare match output.
Timer/Counter Mode
PWM Output Mode
Single Pulse Output Mode
Capture Input Mode
Periodic Type TM – PTM
Periodic TM Operation
Explanation of the operation of the Periodic Timer Module.
Periodic TM Clock Source
Details on selecting clock sources for the Periodic Timer Module.
Periodic Type TM Register Description
PTMnC0 Register
PTM control register 0 for mode and clock selection.
PTMnC1 Register
PTM control register 1 for operating modes and output functions.
PTMnDL Register
PTMnDH Register
PTMnAL Register
PTMnAH Register
PTnRPL Register
Periodic Type TM Operating Modes
Compare Match Output Mode
PTM operating mode for compare match output.
Timer/Counter Mode
PWM Output Mode
Single Pulse Output Mode
Capture Input Mode
Analog to Digital Converter
A/D Overview
Introduction to the Analog-to-Digital Converter functionality.
A/D Converter Register Description
A/D Converter Data Registers – SADOL, SADOH
Registers storing the 12-bit digitized conversion results.
A/D Converter Control Registers – SADC0, SADC1, SADC2, PASR, PBSR
SADC0 Register – HT66F002/HT66F0025/HT66F003
SADC0 register for controlling ADC conversion start and format.
SADC1 Register
SADC2 Register
A/D Operation
A/D Converter Reference Voltage Selection
Selecting the voltage source for ADC reference.
A/D Converter Input Signal
Selecting analog input channels and managing pin-shared functions.
Conversion Rate and Timing Diagram
Summary of A/D Conversion Steps
Programming Considerations
A/D Transfer Function
A/D Programming Examples
Interrupts
Interrupt Registers
Registers for managing interrupt enable and request flags.
Interrupt Register Bit Naming Conventions – HT66F002/HT66F0025
Interrupt Register Bit Naming Conventions – HT66F003
Interrupt Register Bit Naming Conventions – HT66F004
Interrupt Register Contents
INTEG Register – HT66F002/HT66F0025/HT66F003
Register for defining external interrupt edge types.
INTC0 Register – HT66F004
INTC0 Register – HT66F002/HT66F0025/T66F003
INTC1 Register – HT66F002/HT66F0025
INTC1 Register – HT66F003
INTC1 Register – HT66F004
MFI0 Register – HT66F002/HT66F0025/HT66F003
MFI0 Register – HT66F004
Interrupt Operation
Interrupt Structure – HT66F002/HT66F0025/HT66F003
Interrupt Structure – HT66F004
External Interrupt
Multi-function Interrupt
A/D Converter Interrupt
Time Base Interrupts
TBC Register
Register for controlling Time Base interrupt periods and clock.
EEPROM Interrupt
TM Interrupts
Interrupt Wake-up Function
Programming Considerations
SCOM Function for LCD – HT66F004
LCD peration
Configuration and control of the LCD driver.
LCD Bias Current Control
SCOMC
SCOMC register for LCD bias current and control.
Application Circuits
Instruction Set
Introduction
Overview of the microcontroller's instruction set.
Instruction Timing
Details on the number of clock cycles per instruction.
Moving and Transferring Data
Instructions for moving and transferring data between registers.
Arithmetic Operations
Instructions for performing arithmetic calculations.
Logical and Rotate Operation
Instructions for logical operations and bit rotation.
Branches and Control Transfer
Instructions for program flow control like jumps and calls.
Bit Operations
Instructions for single bit manipulation in memory.
Table Read Operations
Instructions for reading data from program memory tables.
Other Operations
Miscellaneous instructions including power down and watchdog control.
Instruction Set Summary
Data Move
Summary of instructions for moving data.
Bit Operation
Summary of instructions for bit manipulation.
Branch
Summary of instructions for program branching.
Table Read
Summary of instructions for reading table data.
Miscellaneous
Summary of other instructions like HALT and WDT control.
Instruction Definition
Package Information
8-pin SOP (150mil) Outline Dimensions
Mechanical dimensions for the 8-pin SOP package.
10-pin SOP (150mil) Outline Dimensions
Mechanical dimensions for the 10-pin SOP package.
10-pin MSOP Outline Dimensions
Mechanical dimensions for the 10-pin MSOP package.
16-pin NSOP (150mil) Outline Dimensions
Mechanical dimensions for the 16-pin NSOP package.
20-pin DIP (300mil) Outline Dimensions
Mechanical dimensions for the 20-pin DIP package.
20-pin SOP (300mil) Outline Dimensions
Mechanical dimensions for the 20-pin SOP package.
20-pin SSOP (150mil) Outline Dimensions
Mechanical dimensions for the 20-pin SSOP package.
Table of Contents
Save PDF
Print
Rename the bookmark
Delete bookmark?
Delete from my manuals?
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL
Need help?
Do you have a question about the HT66F004 and is the answer not in the manual?
Questions and answers