Temperature and Humidity ASSP Flash MCU
HT45F2230
Revision: V0.00
Date: ½an½a½½ ½0½ ½0½½
HT45F2230
Temperature and Humidity ASSP Flash MCU
P½elimina½½
Table of Contents
Features ............................................................................................................ 6
CPU Feat½½es ......................................................................................................................... 6
Pe½iphe½al Feat½½es................................................................................................................. 6
General Description......................................................................................... 7
Block Diagram.................................................................................................. 7
Pin Assignment ................................................................................................ 8
Pin Description ................................................................................................ 8
Absolute Maximum Ratings.......................................................................... 10
D.C. Characteristics....................................................................................... 10
A.C. Characteristics........................................................................................11
LVD&LVR Electrical Characteristics ............................................................ 12
DAC Electrical Characteristics ..................................................................... 12
OP Amplifier Electrical Characteristics
....................................................... 12
LDO Electrical Characteristics ..................................................................... 13
ADC Electrical Characteristics ..................................................................... 13
Temperature Sensor Characteristics ........................................................... 14
Power-on Reset Characteristics................................................................... 14
System Architecture ...................................................................................... 15
Clocking and Pipelining ......................................................................................................... ½½
P½og½am Co½nte½................................................................................................................... ½6
Stack ..................................................................................................................................... ½7
A½ithmetic and Logic Unit – ALU .......................................................................................... ½7
Flash Program Memory ................................................................................ 18
St½½ct½½e ............................................................................................................................... ½8
Special Vecto½s ..................................................................................................................... ½8
Look-½p Table ....................................................................................................................... ½8
Table P½og½am Example ........................................................................................................ ½9
In Ci½c½it P½og½amming – ICP ............................................................................................... ½9
On Chip Deb½g S½ppo½t – OCDS ......................................................................................... ½0
In Application P½og½amming – IAP ....................................................................................... ½½
Data Memory .................................................................................................. 28
St½½ct½½e ............................................................................................................................... ½8
Data Memo½½ Add½essing ...................................................................................................... ½8
Gene½al P½½pose Data Memo½½ ............................................................................................ ½9
Special P½½pose Data Memo½½ ............................................................................................. ½9
Rev. 0.00
½
½an½a½½ ½0½ ½0½½
HT45F2230
Temperature and Humidity ASSP Flash MCU
Special Function Register Description ........................................................ 30
P½elimina½½
Indi½ect Add½essing Registe½s – IAR0½ IAR½½ IAR½ ............................................................... ½0
Memo½½ Pointe½s – MP0½ MP½L½ MP½H½ MP½L½ MP½H ......................................................... ½0
Acc½m½lato½ – ACC .............................................................................................................. ½0
P½og½am Co½nte½ Low Registe½ – PCL ................................................................................. ½½
Look-½p Table Registe½s – TBLP½ TBHP½ TBLH .................................................................... ½½
Stat½s Registe½ – STATUS ................................................................................................... ½½
Oscillators ...................................................................................................... 33
Oscillato½ Ove½view .............................................................................................................. ½½
System Clock Configurations
................................................................................................ ½½
Inte½nal RC Oscillato½ – HIRC ............................................................................................... ½4
Inte½nal ½½kHz Oscillato½ – LIRC .......................................................................................... ½4
Operating Modes and System Clocks ......................................................... 34
S½stem Clocks ...................................................................................................................... ½4
S½stem Ope½ation Modes ..................................................................................................... ½6
Cont½ol Registe½s .................................................................................................................. ½7
Ope½ating Mode Switching ................................................................................................... ½8
Standb½ C½½½ent Conside½ations .......................................................................................... 4½
Wake-½p ............................................................................................................................... 4½
P½og½amming Conside½ations ............................................................................................... 4½
Watchdog Timer ............................................................................................. 43
Watchdog Time½ Clock So½½ce .............................................................................................. 4½
Watchdog Time½ Cont½ol Registe½ ......................................................................................... 4½
Watchdog Time½ Ope½ation ................................................................................................... 44
Reset and Initialisation.................................................................................. 45
Reset F½nctions .................................................................................................................... 4½
Reset Initial Conditions ......................................................................................................... 49
Input/Output Ports ......................................................................................... 51
P½ll-high Resisto½s ................................................................................................................ ½½
Po½t A Wake-½p ..................................................................................................................... ½½
I/O Po½t Cont½ol Registe½s ..................................................................................................... ½½
Pin-sha½ed F½nctions ............................................................................................................ ½½
I/O Pin St½½ct½½es .................................................................................................................. ½½
P½og½amming Conside½ations................................................................................................ ½6
Timer Modules – TM ...................................................................................... 57
Int½od½ction ........................................................................................................................... ½7
TM Ope½ation ........................................................................................................................ ½7
TM Clock So½½ce................................................................................................................... ½7
TM Inte½½½pts ......................................................................................................................... ½8
TM Exte½nal Pins .................................................................................................................. ½8
TM Inp½t/O½tp½t Pin Selection .............................................................................................. ½8
P½og½amming Conside½ations................................................................................................ ½9
Rev. 0.00
½
½an½a½½ ½0½ ½0½½
HT45F2230
Temperature and Humidity ASSP Flash MCU
Compact Type TM – CTM .............................................................................. 60
P½elimina½½
Compact TM Ope½ation ......................................................................................................... 60
Compact T½pe TM Registe½ Desc½iption................................................................................ 60
Compact T½pe TM Ope½ating Modes .................................................................................... 64
Standard Type TM – STM .............................................................................. 70
Standa½d TM Ope½ation ......................................................................................................... 70
Standa½d T½pe TM Registe½ Desc½iption ............................................................................... 70
Standa½d T½pe TM Ope½ating Modes .................................................................................... 74
Analog to Digital Converter – ADC............................................................... 83
A/D Ove½view ........................................................................................................................ 8½
A/D Conve½te½ Registe½ Desc½iption ...................................................................................... 84
A/D Conve½te½ Data Registe½s – SADOL½ SADOH................................................................ 84
A/D Conve½te½ Cont½ol Registe½s – SADC0½ SADC½............................................................. 8½
A/D Ope½ation ....................................................................................................................... 87
A/D Refe½ence Voltage.......................................................................................................... 88
A/D Conve½te½ Inp½t Signal ................................................................................................... 88
Conve½sion Rate and Timing Diag½am .................................................................................. 89
S½mma½½ of A/D Conve½sion Steps....................................................................................... 90
P½og½amming Conside½ations................................................................................................ 90
A/D T½ansfe½ F½nction ........................................................................................................... 9½
Analog Signal Process and OPA with DAC ................................................ 92
LDO Function ................................................................................................. 94
I
2
C Interface ................................................................................................... 94
Cont½ol Registe½s .................................................................................................................. 9½
I
½
C Inte½face Ope½ation ......................................................................................................... 9½
I
½
C Registe½s ......................................................................................................................... 96
I
½
C B½s Comm½nication ....................................................................................................... 98
I
½
C B½s Sta½t Signal .............................................................................................................. 99
Slave Add½ess ...................................................................................................................... 99
I
½
C B½s Read/W½ite Signal ................................................................................................. ½00
I
½
C B½s Slave Add½ess Acknowledge Signal ...................................................................... ½00
I
½
C B½s Data and Acknowledge Signal .............................................................................. ½00
I
½
C Time-o½t Cont½ol ............................................................................................................ ½0½
Rev. 0.00
4
½an½a½½ ½0½ ½0½½
HT45F2230
Temperature and Humidity ASSP Flash MCU
Interrupts ...................................................................................................... 103
P½elimina½½
Inte½½½pt Registe½s............................................................................................................... ½0½
Inte½½½pt Ope½ation .............................................................................................................. ½07
Exte½nal Inte½½½pt................................................................................................................. ½08
A/D Conve½te½ Inte½½½pt ....................................................................................................... ½08
M½lti-f½nction Inte½½½pt ........................................................................................................ ½08
I
½
C Inte½½½pt ......................................................................................................................... ½09
Time Base Inte½½½pts ........................................................................................................... ½09
LVD Inte½½½pt ........................................................................................................................½½½
TM Inte½½½pts ........................................................................................................................½½½
Inte½½½pt Wake-½p F½nction ..................................................................................................½½½
P½og½amming Conside½ations...............................................................................................½½½
Low Voltage Detector – LVD ........................................................................113
LVD Registe½ ........................................................................................................................½½½
LVD Ope½ation ......................................................................................................................½½4
Application Circuits ......................................................................................115
Instruction Set...............................................................................................116
Int½od½ction ..........................................................................................................................½½6
Inst½½ction Timing .................................................................................................................½½6
Moving and T½ansfe½½ing Data ..............................................................................................½½6
A½ithmetic Ope½ations...........................................................................................................½½6
Logical and Rotate Ope½ation ..............................................................................................½½7
B½anches and Cont½ol T½ansfe½ ............................................................................................½½7
Bit Ope½ations ......................................................................................................................½½7
Table Read Ope½ations ........................................................................................................½½7
Othe½ Ope½ations..................................................................................................................½½7
Instruction Set Summary .............................................................................118
Extended Inst½½ction Set ..................................................................................................... ½½0
Table Conventions................................................................................................................½½8
Instruction Definition
................................................................................... 122
Package Information ................................................................................... 138
Extended Instruction Definition
........................................................................................... ½½½
8-pin SOP (½½0mil) O½tline Dimensions ............................................................................. ½½9
½0-pin MSOP O½tline Dimensions ...................................................................................... ½40
Rev. 0.00
½
½an½a½½ ½0½ ½0½½
评论