Enhanced A/D Flash Type 8-Bit MCU with EEPROM
HT66F60A
HT66F70A
Revision: V1.00
Date: ½a½½½ ½0½ ½01½
HT66F60A/HT66F70A
Enhanced A/D Flash Type 8-Bit MCU with EEPROM
Table of Contents
Features ............................................................................................................ 7
CPU Featu½es ........................................................................................................................ 7
Pe½ip½e½al Featu½es ................................................................................................................ 7
General Description......................................................................................... 8
Selection Table ................................................................................................. 8
Block Diagram.................................................................................................. 9
Pin Assignment .............................................................................................. 10
Pin Description .............................................................................................. 12
Absolute Maximum Ratings.......................................................................... 18
D.C. Characteristics....................................................................................... 18
A.C. Characteristics....................................................................................... 21
A/D Converter Characteristics...................................................................... 22
LVD & LVR Electrical Characteristics .......................................................... 22
Comparator Electrical Characteristics ........................................................ 23
Power on Reset Electrical Characteristics ................................................. 23
System Architecture ...................................................................................... 24
Clo½king and Pipelining ......................................................................................................... ½4
P½og½am Counte½................................................................................................................... ½5
Sta½k ..................................................................................................................................... ½6
A½it½meti½ and Logi½ Unit – ALU ........................................................................................... ½6
Flash Program Memory ................................................................................. 27
St½u½tu½e................................................................................................................................ ½7
Spe½ial Ve½to½s ..................................................................................................................... ½8
Look-up Table ........................................................................................................................ ½8
Table P½og½am Example ........................................................................................................ ½9
In Ci½½uit P½og½amming – ICP ............................................................................................... ½0
On-C½ip Debug Suppo½t – OCDS ......................................................................................... ½1
In Appli½ation P½og½amming – IAP ........................................................................................ ½1
Data Memory .................................................................................................. 39
St½u½tu½e................................................................................................................................ ½9
Gene½al Pu½pose Data ½emo½y ............................................................................................ 40
Spe½ial Pu½pose Data ½emo½y ............................................................................................. 40
Special Function Register Description ........................................................ 42
Indi½e½t Add½essing Registe½s – IAR0½ IAR1 ......................................................................... 4½
½emo½y Pointe½s – ½P0½ ½P1 .............................................................................................. 4½
Bank Pointe½ – BP ................................................................................................................. 4½
A½½umulato½ – ACC ............................................................................................................... 4½
P½og½am Counte½ Low Registe½ – PCL.................................................................................. 44
Look-up Table Registe½s – TBLP½ TBHP½ TBLH ..................................................................... 44
Status Registe½ – STATUS .................................................................................................... 44
Rev. 1.00
½
½a½½½ ½0½ ½01½
HT66F60A/HT66F70A
Enhanced A/D Flash Type 8-Bit MCU with EEPROM
EEPROM Data Memory.................................................................................. 46
EEPRO½ Data ½emo½y St½u½tu½e ........................................................................................ 46
EEPRO½ Registe½s .............................................................................................................. 46
Reading Data f½om t½e EEPRO½ ......................................................................................... 47
W½iting Data to t½e EEPRO½ ................................................................................................ 48
W½ite P½ote½tion ..................................................................................................................... 48
EEPRO½ Inte½½upt ................................................................................................................ 48
P½og½amming Conside½ations................................................................................................ 48
P½og½amming Examples ........................................................................................................ 49
Oscillator ........................................................................................................ 50
Os½illato½ Ove½view ............................................................................................................... 50
System Clock Configurations
................................................................................................ 50
Exte½nal C½ystal/Ce½ami½ Os½illato½ – HXT ........................................................................... 51
Exte½nal RC Os½illato½ – ERC ............................................................................................... 5½
Inte½nal Hig½ Speed RC Os½illato½ – HIRC ........................................................................... 5½
Exte½nal ½½.768kHz C½ystal Os½illato½ – LXT ........................................................................ 5½
Inte½nal Low Speed Os½illato½ – LIRC ................................................................................... 54
Supplementa½y Os½illato½s .................................................................................................... 54
Operating Modes and System Clocks ......................................................... 55
System Clo½k ........................................................................................................................ 55
System Ope½ation ½odes...................................................................................................... 56
Cont½ol Registe½ .................................................................................................................... 57
Fast Wake-up ........................................................................................................................ 60
Ope½ating ½ode Swit½½ing .................................................................................................... 61
NOR½AL ½ode to SLOW ½ode Swit½½ing ........................................................................... 6½
SLOW ½ode to NOR½AL ½ode Swit½½ing ........................................................................... 6½
Ente½ing t½e SLEEP0 ½ode .................................................................................................. 64
Ente½ing t½e SLEEP1 ½ode .................................................................................................. 64
Ente½ing t½e IDLE0 ½ode ...................................................................................................... 64
Ente½ing t½e IDLE1 ½ode ...................................................................................................... 65
Standby Cu½½ent Conside½ations ........................................................................................... 65
Wake-up ................................................................................................................................ 66
P½og½amming Conside½ations................................................................................................ 66
Watchdog Timer ............................................................................................. 67
Wat½½dog Time½ Clo½k Sou½½e .............................................................................................. 67
Wat½½dog Time½ Cont½ol Registe½ ......................................................................................... 67
Wat½½dog Time½ Ope½ation ................................................................................................... 68
Reset and Initialisation.................................................................................. 70
Reset Fun½tions .................................................................................................................... 70
Reset Initial Conditions ......................................................................................................... 74
Rev. 1.00
½
½a½½½ ½0½ ½01½
HT66F60A/HT66F70A
Enhanced A/D Flash Type 8-Bit MCU with EEPROM
Input/Output Ports ......................................................................................... 78
Pull-½ig½ Resisto½s ................................................................................................................ 80
Po½t A Wake-up ..................................................................................................................... 80
I/O Po½t Cont½ol Registe½s ..................................................................................................... 80
Pin-s½a½ed Fun½tions ............................................................................................................ 80
I/O Pin St½u½tu½es .................................................................................................................. 9½
P½og½amming Conside½ations................................................................................................ 94
Timer Modules – TM ...................................................................................... 94
Int½odu½tion ........................................................................................................................... 94
T½ Ope½ation ........................................................................................................................ 95
T½ Clo½k Sou½½e................................................................................................................... 95
T½ Inte½½upts ......................................................................................................................... 95
T½ Exte½nal Pins ................................................................................................................... 96
T½ Input/Output Pin Cont½ol ................................................................................................. 97
P½og½amming Conside½ations................................................................................................ 98
Compact Type TM – CTM .............................................................................. 99
Compa½t Type T½ Registe½ Des½½iption.............................................................................. 100
Compa½t Type T½ Ope½ating ½odes .................................................................................. 104
Compa½e ½at½½ Output ½ode ............................................................................................. 104
Time½/Counte½ ½ode ........................................................................................................... 107
PW½ Output ½ode.............................................................................................................. 107
Compa½t T½ Ope½ation ......................................................................................................... 99
Standard Type TM – STM .............................................................................110
Standa½d T½ Ope½ation ........................................................................................................110
Standa½d Type T½ Registe½ Des½½iption ..............................................................................111
Standa½d Type T½ Ope½ating ½odes ...................................................................................115
Compa½e ½at½½ Output ½ode ..............................................................................................115
Time½/Counte½ ½ode ............................................................................................................118
PW½ Output ½ode...............................................................................................................118
Single Pulse ½ode .............................................................................................................. 1½1
Captu½e Input ½ode ............................................................................................................ 1½½
Enhanced Type TM – ETM ........................................................................... 125
En½an½ed T½ Ope½ation ..................................................................................................... 1½5
En½an½ed Type T½ Registe½ Des½½iption ............................................................................ 1½6
En½an½ed Type T½ Ope½ating ½odes................................................................................. 1½½
Compa½e Output ½ode........................................................................................................ 1½½
Time½/Counte½ ½ode ........................................................................................................... 1½8
PW½ Output ½ode.............................................................................................................. 1½8
Single Pulse ½ode .............................................................................................................. 144
Captu½e Input ½ode ............................................................................................................ 146
Rev. 1.00
4
½a½½½ ½0½ ½01½
HT66F60A/HT66F70A
Enhanced A/D Flash Type 8-Bit MCU with EEPROM
Aanlog to Digital Converter ........................................................................ 149
A/D Ove½view ...................................................................................................................... 149
A/D Conve½te½ Registe½ Des½½iption .................................................................................... 149
A/D Ope½ation ..................................................................................................................... 15½
A/D Input Pins ..................................................................................................................... 154
Summa½y of A/D Conve½sion Steps..................................................................................... 154
P½og½amming Conside½ations.............................................................................................. 156
A/D T½ansfe½ Fun½tion ......................................................................................................... 156
A/D P½og½amming Example................................................................................................. 157
Comparators ................................................................................................ 159
Compa½ato½ Ope½ation ........................................................................................................ 159
Compa½ato½ Registe½s ......................................................................................................... 160
Compa½ato½ Inte½½upt ........................................................................................................... 16½
P½og½amming Conside½ations.............................................................................................. 16½
Serial Interface Module – SIM ..................................................................... 162
SPI Inte½fa½e ....................................................................................................................... 16½
SPI Registe½s ...................................................................................................................... 164
SPI Communi½ation ............................................................................................................ 167
I
½
C Inte½fa½e ........................................................................................................................ 169
I
½
C Inte½fa½e Ope½ation........................................................................................................ 169
I
½
C Registe½s ....................................................................................................................... 170
I
½
C Bus Communi½ation ...................................................................................................... 174
I
½
C Bus Sta½t Signal............................................................................................................. 175
Slave Add½ess ..................................................................................................................... 175
I
½
C Bus Read/W½ite Signal .................................................................................................. 176
I
½
C Bus Slave Add½ess A½knowledge Signal ....................................................................... 176
I
½
C Bus Data and A½knowledge Signal ............................................................................... 176
Peripheral Clock Output.............................................................................. 179
Pe½ip½e½al Clo½k Ope½ation ................................................................................................. 179
Pe½ip½e½al Clo½k Registe½s.................................................................................................. 180
Serial Interface – SPIA................................................................................. 181
SPIA Inte½fa½e Ope½ation .................................................................................................... 181
SPIA ½egiste½s ..................................................................................................................... 18½
SPIA Communi½ation .......................................................................................................... 185
SPIA Bus Enable/Disable .................................................................................................... 187
SPIA Ope½ation ................................................................................................................... 187
E½½o½ Dete½tion .................................................................................................................... 188
Rev. 1.00
5
½a½½½ ½0½ ½01½