EasyManua.ls Logo

Holtek HT66F002 - User Manual

Default Icon
144 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
Loading...
Cost-Effective A/D Flash MCU with EEPROM
HT66F002/HT66F0025/HT66F003/HT66F004
Revision: V1.71 Date: April 11, 2017

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Holtek HT66F002 and is the answer not in the manual?

Holtek HT66F002 Specifications

General IconGeneral
Architecture8-bit
Flash Memory2KB
RAM128B
Clock Frequency8 MHz
ADC10-bit
A/D ConverterYes
Operating Temperature-40°C to 85°C
ADC Channels4
Operating Voltage2.2V ~ 5.5V
Timers8-bit, 16-bit

Summary

Features

CPU Features

Details the central processing unit capabilities and features of the microcontroller.

Peripheral Features

Outlines the various peripheral modules and their capabilities integrated into the microcontroller.

General Description

Selection Table

Summarizes key features and specifications for different device part numbers.

Block Diagram

Pin Assignment

Pin Description

Absolute Maximum Ratings

D.C. Characteristics

A.C. Characteristics

ADC Electrical Characteristics

OPA Electrical Characteristics

LVR Electrical Characteristics

Power on Reset Electrical Characteristics

System Architecture

Clocking and Pipelining

Explains how the system clock is generated and how instruction pipelining enhances performance.

Program Counter

Stack

Arithmetic and Logic Unit - ALU

Flash Program Memory

Structure

Describes the organization and addressing scheme of the Program Memory.

Look-up Table

Explains how to use Program Memory areas for storing and retrieving lookup table data.

Table Program Example

In Circuit Programming - ICP

On-Chip Debug Support - OCDS

RAM Data Memory

Structure

Explains the organization of RAM into Special Function and General Purpose Data Memory.

General Purpose Data Memory

Details the RAM area available for general user data storage.

Special Purpose Data Memory

Describes registers essential for microcontroller operation and device configuration.

Special Function Register Description

Indirect Addressing Registers - IAR0, IAR1

Explains the function of Indirect Addressing Registers for RAM data access.

Memory Pointers - MP0, MP1

Details the Memory Pointers used in conjunction with indirect addressing.

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

Explains the organization and capacity of the EEPROM Data Memory.

EEPROM Registers

Reading Data from the EEPROM

Writing Data to the EEPROM

Write Protection

EEPROM Interrupt

Programming Considerations

Oscillator

Oscillator Overview

Provides a general overview of the integrated internal oscillators and their functions.

System Clock Configurations

Explains how to configure the system clock using the HIRC and LIRC oscillators.

Internal RC Oscillator - HIRC

Internal 32 kHz Oscillator - LIRC

Operating Modes and System Clocks

System Clocks

System Operation Modes

NORMAL Mode

Describes the NORMAL mode operation using the high-speed oscillator.

SLOW Mode

SLEEP0 Mode

SLEEP1 Mode

IDLE0 Mode

IDLE1 Mode

Control Register (SMOD)

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

Details the source and configuration of the clock for the Watchdog Timer.

Watchdog Timer Control Register

Describes the WDTC register for controlling the Watchdog Timer's operation and timeout.

Watchdog Timer Operation

Watchdog Timer Enable;Disable Control

Details the bits and methods for enabling, disabling, and resetting the Watchdog Timer.

Reset and Initialisation

Reset Functions

Power-on Reset

Describes the reset that occurs automatically when power is first applied.

RES Pin Reset

Details the use of an external RC network and the RES pin for reliable reset operation.

Low Voltage Reset - LVR

Watchdog Time-out Reset during Normal Operation

Watchdog Time-out Reset during SLEEP or IDLE Mode

Reset Initial Conditions

Register Reset Conditions

Input;Output Ports

I;O Control Register List

Lists the control registers for configuring the input/output direction of I/O pins.

Pull-high Resistors

PAPU Register

Details the PAPU register for controlling pull-high resistors on Port A.

PBPU Register

Details the PBPU register for controlling pull-high resistors on Port B.

Port A Wake-up

PAWU Register

Details the PAWU register for configuring Port A pins for wake-up functionality.

I;O Port Control Registers

PAC Register

Details the PAC register for controlling Port A's input/output configuration.

PBC Register

PCC Register

Pin-shared Functions

PASR Register - HT66 F002;HT66 F0025

PASR Register - HT66 F003

PASR Register - HT66 F004

PBSR Register - HT66 F003

PBSR Register - HT66 F004

IFS0 Register - HT66 F002;HT66 F0025

IFS0 Register - HT66 F003

I;O Pin Structures

System Clock output pin CLO

Programming Considerations (I;O)

Timer Modules - TM

Introduction

Provides an introduction to the Timer Modules, categorizing them into Standard and Periodic types.

TM Interrupts

TM External Pins

TM Input;Output Pin Control Register

Programming Considerations (TM)

Standard Type TM - STM

Standard TM Operation

Explains the core operation of the Standard TM, including counters and comparators.

Standard Type TM Register Description

Standard Type TM Operating Modes

Compare Output Mode

Explains the Compare Output Mode, including counter clearing and output pin behavior.

Timer;Counter Mode

PWM Output Mode

Single Pulse Mode

Capture Input Mode

Periodic Type TM - PTM

Periodic TM Operation

Explains the core operation of the Periodic TM, similar to STM but with different pin assignments.

Periodic Type TM Register Description

Periodic Type TM Operating Modes

Compare Match Output Mode

Explains the Compare Match Output Mode for the PTM, including its behavior and interrupt flags.

Timer;Counter Mode

PWM Output Mode

Single Pulse Output Mode

Capture Input Mode

Analog to Digital Converter

A;D Overview

Provides a general overview of the ADC's capabilities, channels, and input signals.

A;D Converter Register Description

A;D Converter Data Registers - SADOL, SADOH

Describes the SADOL and SADOH registers that store the 12-bit ADC conversion results.

A;D Converter Control Registers

SADC0 Register - HT66 F002;HT66 F0025;HT66 F003

Details the SADC0 register for controlling A/D conversion start, busy status, enable, and format.

SADC0 Register - HT66 F004

SADC1 Register

SADC2 Register

A;D Operation

A;D Converter Input Signal

Conversion Rate and Timing Diagram

Summary of A;D Conversion Steps

Programming Considerations (ADC)

A;D Transfer Function

A;D Programming Examples

Interrupts

Interrupt Registers

Details the registers used for controlling and managing interrupts.

Interrupt Register Bit Naming Conventions

INTEG Register

Details the INTEG register for configuring external interrupt edge types.

INTC0 Register

INTC0 Register - HT66 F004

INTC1 Register - HT66 F002;HT66 F0025

INTC1 Register - HT66 F003

INTC1 Register - HT66 F004

MFI0 Register

MFI1 Register

Interrupt Operation

External Interrupt

Multi-function Interrupt

A;D Converter Interrupt

Time Base Interrupts

TBC Register

EEPROM Interrupt

TM Interrupts

Interrupt Wake-up Function

Programming Considerations (Interrupts)

SCOM Function for LCD - HT66 F004

LCD peration

Explains how to drive an LCD panel by configuring I/O pins as common pins and using the SCOMC register.

LCD Bias Current Control

SCOMC

Application Circuits

Instruction Set

Introduction

Provides an overview of the instruction set and its purpose.

Instruction Timing

Explains the timing of instructions, including single-cycle and multi-cycle operations.

Moving and Transferring Data

Describes instructions for moving and transferring data between registers, memory, and ports.

Arithmetic Operations

Details the arithmetic instructions available in the instruction set.

Logical and Rotate Operation

Branches and Control Transfer

Bit Operations

Table Read Operations

Other Operations

Instruction Set Summary

Instruction Definition

Package Information

8-pin SOP (150 mil) Outline Dimensions

10-pin SOP (150 mil) Outline Dimensions

10-pin MSOP Outline Dimensions

16-pin NSOP (150 mil) Outline Dimensions

20-pin DIP (300 mil) Outline Dimensions

20-pin SOP (300 mil) Outline Dimensions

20-pin SSOP (150 mil) Outline Dimensions

Related product manuals