内½
EEPROM
增强
A/D
型
8
½
FLASH
单片机
HT66F60A/HT66F70A
版本
: V1.00
日期
: 2013-03-20
HT66F60A/HT66F70A
内½
EEPROM
增强
A/D
型
8
½
FLASH
单片机
目½
特性
.................................................................................................................................1
CPU
特性
............................................................................................................................... 1
周边特性
................................................................................................................................ 2
概述
.................................................................................................................................3
选型表
.............................................................................................................................3
方框图
.............................................................................................................................4
引脚图
.............................................................................................................................5
引脚说明
.........................................................................................................................8
极限参数
.......................................................................................................................15
直流电气特性
...............................................................................................................16
交流电气特性
...............................................................................................................19
ADC
特性
......................................................................................................................20
LVD&LVR
电气特性
...................................................................................................20
比较器电气特性
...........................................................................................................21
上电复½特性
...............................................................................................................21
系统结构
.......................................................................................................................22
时序和流水线结构
.............................................................................................................. 22
程序计数器
...................................................................................................................23
堆栈
...................................................................................................................................... 23
算术逻辑单元
– ALU .......................................................................................................... 24
Flash
程序存储器
........................................................................................................25
结构
...................................................................................................................................... 25
特殊向量
.............................................................................................................................. 25
查表
...................................................................................................................................... 26
查表范例
.............................................................................................................................. 26
在线烧½
– ICP .................................................................................................................... 27
片上调试
– OCDS................................................................................................................ 28
在应用编程
– IAP ................................................................................................................ 28
在应用编程控制寄存器
...................................................................................................... 29
Flash
存储器写功½½½步骤.............................................................................................
32
数据存储器
...................................................................................................................37
结构
...................................................................................................................................... 37
通用数据存储器
.................................................................................................................. 38
特殊功½数据存储器
.......................................................................................................... 38
特殊功½寄存器
...........................................................................................................40
间接寻址寄存器
– IAR0, IAR1, IAR2................................................................................ 40
间接寻址指针
– MP0, MP1L, MP1H, MP2L, MP2H......................................................... 40
存储区指针
– BP ................................................................................................................. 41
累加器
– ACC ...................................................................................................................... 41
Rev.1.00
II
2013-03-20
HT66F60A/HT66F70A
内½
EEPROM
增强
A/D
型
8
½
FLASH
单片机
程序计数器½字节寄存器
– PCL ....................................................................................... 42
表格寄存器
– TBLP,TBHP,TBLH ................................................................................ 42
状态寄存器
– STATUS ........................................................................................................ 42
EEPROM
数据寄存器
.................................................................................................44
EEPROM
数据寄存器结构
................................................................................................. 44
EEPROM
寄存器
................................................................................................................. 44
从
EEPROM
中读取数据
.................................................................................................... 46
写数据到
EEPROM ............................................................................................................. 46
写保护
.................................................................................................................................. 46
EEPROM
中断
..................................................................................................................... 46
编程注意事项
...................................................................................................................... 46
振荡器
...........................................................................................................................48
振荡器概述
.......................................................................................................................... 48
系统时钟配½
...................................................................................................................... 48
外部晶½
/
陶瓷振荡器
– HXT ........................................................................................... 49
外部
RC
振荡器
– ERC ....................................................................................................... 50
内部
RC
振荡器
– HIRC ..................................................................................................... 50
外部
32.768kHz
晶½振荡器
– LXT ................................................................................... 50
LXT
振荡器½功耗功½
..................................................................................................... 51
内部
32kHz
振荡器
– LIRC ................................................................................................ 51
辅助振荡器
.......................................................................................................................... 52
工½模式和系统时钟
...................................................................................................52
系统时钟
.............................................................................................................................. 52
系统工½模式
...................................................................................................................... 53
控制寄存器
.......................................................................................................................... 54
快速唤醒
.............................................................................................................................. 56
工½模式切换和唤醒
...................................................................................................57
正常模式切换到½速模式
.................................................................................................. 58
½速模式切换到正常模式
.................................................................................................. 59
进入休眠模式
0 ................................................................................................................... 59
进入休眠模式
1 ................................................................................................................... 60
进入空闲模式
0 ................................................................................................................... 60
进入空闲模式
1 ................................................................................................................... 60
静态电流的注意事项
.......................................................................................................... 60
唤醒
...................................................................................................................................... 61
编程注意事项
...................................................................................................................... 61
看门狗定时器
...............................................................................................................62
看门狗定时器时钟源
.......................................................................................................... 62
看门狗定时器控制寄存器
.................................................................................................. 62
看门狗定时器操½
.............................................................................................................. 63
复½和初始化
...............................................................................................................64
复½功½
.............................................................................................................................. 64
复½初始状态
...................................................................................................................... 68
Rev. 1.00
III
2013-03-20
HT66F60A/HT66F70A
内½
EEPROM
增强
A/D
型
8
½
FLASH
单片机
输入
/
输出端口
............................................................................................................74
上拉电阻
.............................................................................................................................. 75
PA
口唤醒
........................................................................................................................... 75
输入
/
输出端口控制寄存器
............................................................................................... 75
引脚共用功½
...................................................................................................................... 75
引脚共用寄存器
.................................................................................................................. 76
输入
/
输出引脚结构
........................................................................................................... 89
编程注意事项
..................................................................................................................... 90
定时器模块
– TM .........................................................................................................90
简介
..................................................................................................................................... 90
TM
操½
.............................................................................................................................. 91
TM
时钟源
.......................................................................................................................... 91
TM
中断
.............................................................................................................................. 91
TM
外部引脚
....................................................................................................................... 91
TM
输入
/
输出引脚控制寄存器
........................................................................................ 92
编程注意事项
...................................................................................................................... 93
简易型
TM – CTM.......................................................................................................94
简易型
TM
操½
................................................................................................................. 94
简易型
TM
寄存器介绍
..................................................................................................... 94
简易型
TM
工½模式
......................................................................................................... 98
比较匹配输出模式
............................................................................................................. 98
定时
/
计数器模式
............................................................................................................ 101
PWM
输出模式
................................................................................................................. 101
标准型
TM – STM .....................................................................................................104
标准型
TM
操½
................................................................................................................ 104
标准型
TM
寄存器介绍
................................................................................................... 105
标准型
TM
工½模式
....................................................................................................... 108
比较匹配输出模式
........................................................................................................... 108
定时
/
计数器模式
.............................................................................................................111
PWM
输出模式
..................................................................................................................111
单脉冲模式
........................................................................................................................ 114
捕捉输入模式
.................................................................................................................... 116
增强型
TM – ETM ..................................................................................................... 117
增强型
TM
操½
................................................................................................................ 118
增强型
TM
寄存器介绍
................................................................................................... 118
增强型
TM
工½模式
....................................................................................................... 124
比较匹配输出模式
........................................................................................................... 125
定时
/
计数器模式
............................................................................................................ 130
PWM
输出模式
................................................................................................................. 130
单脉冲输出模式
................................................................................................................ 136
捕捉输入模式
.................................................................................................................... 138
Rev.1.00
IV
2013-03-20
HT66F60A/HT66F70A
内½
EEPROM
增强
A/D
型
8
½
FLASH
单片机
A/D
½换器..................................................................................................................141
A/D
简介
............................................................................................................................ 141
A/D
½换寄存器介绍
........................................................................................................ 141
A/D
½换器数据寄存器
– ADRL,ADRH ...................................................................... 142
A/D
½换控制寄存器
– ADCR0, ADCR1, PAS0~PAS3, PES3, PFS0, PHS0.................. 142
A/D
操½
............................................................................................................................ 145
A/D
输入引脚
.................................................................................................................... 146
A/D
½换步骤
.................................................................................................................... 146
编程注意事项
.................................................................................................................... 147
A/D
½换功½
.................................................................................................................... 147
A/D
½换应用范例
............................................................................................................ 148
比较器
.........................................................................................................................150
比较器操½
........................................................................................................................ 150
比较器寄存器
.................................................................................................................... 150
比较器中断
........................................................................................................................ 152
编程注意事项
.................................................................................................................... 152
串行接口模块
– SIM ..................................................................................................153
SPI
接口
............................................................................................................................. 153
SPI
接口操½
..................................................................................................................... 153
SPI
寄存器
......................................................................................................................... 154
SPI
通信
............................................................................................................................. 157
I
2
C
接口
.............................................................................................................................. 159
I
2
C
寄存器
.......................................................................................................................... 160
I
2
C
总线通信
...................................................................................................................... 164
I
2
C
总线起始信号
.............................................................................................................. 164
从机地址
............................................................................................................................ 165
I
2
C
总线读
/
写信号
........................................................................................................... 165
I
2
C
总线从机地址确认信号
.............................................................................................. 165
I
2
C
总线数据和确认信号
.................................................................................................. 165
I
2
C
溢出控制
...................................................................................................................... 167
外围时钟输出
.............................................................................................................168
外围时钟操½
.................................................................................................................... 168
外围时钟寄存器
................................................................................................................ 168
SPIA
串行接口模块
– SPIA ......................................................................................169
SPIA
接口操½...................................................................................................................
169
SPIA
寄存器.......................................................................................................................
170
SPI
通信
............................................................................................................................. 173
SPIA
½½
/
除½
............................................................................................................... 175
SPIA
操½...........................................................................................................................
175
错误侦测
............................................................................................................................ 176
中断
.............................................................................................................................177
中断寄存器
........................................................................................................................ 177
中断操½
............................................................................................................................ 188
外部中断
............................................................................................................................ 189
Rev. 1.00
V
2013-03-20
评论