专利权盛群半导体公司在全球各地区已核准和申请中之专利权至少有160件以上,享有绝对之合法权益。与盛群公司MCU或其它产品有关的专利权并未被同意授权使用,任何经由不当手段侵害盛群公司专利权之公司、组织或个人,盛群将采取一切可能的法律行动,遏止侵权者不当的侵权行为,并追讨盛群公司因侵权行为所受之损失、或侵权者所得之不法利益。 商标权盛群之名称和标识、Holtek标识、HT-IDE、HT-ICE、MarvelSpeech、MusicMicro、AdlibMicro MagicVoice、GreenDialer、PagerPro、Q-Voice、TurboVoice、EasyVoice和HandyWriter都是盛群半导体公司在台湾地区和其它国家的注册商标。 著作权Copyright2006byHOLTEKSEMICONDUCTORINC.规格书中所出现的信息在出版当时相信是正确的,然而盛群对于规格内容的使用不负责任。文中提到的应用其目的仅仅是用来做说明,盛群不保证或不表示这些应用没有更深入的修改就能适用,也不推荐它的产品使用在会由于故障或其它原因可能会对人身造成危害的地方。盛群产品不授权使用于救生、维生器件或系统中做为关键器件。
上传时间: 2013-10-12
上传用户:hui626493
I/O 型单片机使用手册 目录 间接寻址寄存器 – IAR, IAR0, IAR1 .............................................35间接寻址指针 – MP, MP0, MP1 ......................................................35存储区指针 – BP .........................................................................36累加器 – ACC...................................................................................37程序计数器低字节寄存器 – PCL....................................................37表格寄存器 – TBLP,TBHP,TBLH....................................................37看门狗定时寄存器 – WDTS............................................................38状态寄存器 – STATUS.....................................................................38中断控制寄存器 – INTC,INTC0,INTC1 .........................................39定时/计数寄存器...............................................................................39输入/输出端口和控制寄存器...........................................................40UART 寄存器 .USR,UCR1,UCR2,TXR/RXR,BRG.......................40输入/输出端口..........................................................................................41上拉电阻............................................................................................41PA 口的唤醒......................................................................................41输入/输出端口控制寄存器...............................................................41引脚共享功能....................................................................................42编程注意事项....................................................................................45定时/计数器..............................................................................................46配置定时/计数器输入时钟源...........................................................47定时/计数寄存器 – TMR, TMR0,TMR0L/TMR0H,TMR1L/TMR1H,TMR2.....................................................................49定时/计数控制寄存器 – TMRC,TMR0C,TMR1C,TMR2C............50定时器模式........................................................................................53事件计数器模式................................................................................53脉冲宽度测量模式............................................................................54可编程分频器(PFD)和蜂鸣器的应用..............................................55预分频器(Prescaler)...........................................................................56输入/输出接口...................................................................................56编程注意事项....................................................................................57定时/计数器应用范例.......................................................................57中断............................................................................................................59中断寄存器........................................................................................59中断优先权........................................................................................62外部中断............................................................................................63定时/计数器中断...............................................................................64UART 中断........................................................................................64编程注意事项....................................................................................65复位和初始化............................................................................................66复位....................................................................................................66目录iii异步串行口——UART............................................................................74UART 特性..........................................................................................74UART 外部引脚..................................................................................74数据发送.............................................................................................75UART 状态控制寄存器......................................................................75波特率发生器.....................................................................................79UART 设置与控制..............................................................................81UART 发送器......................................................................................83UART 接收器......................................................................................84接收错误处理.....................................................................................85接收中断图解.....................................................................................86地址检测模式.....................................................................................86暂停模式下的UART 功能.................................................................87UART 应用范例.................................................................................87振荡器........................................................................................................89系统时钟配置....................................................................................89系统晶体/陶瓷振荡器.......................................................................89系统电阻电容振荡器........................................................................90内部系统电阻电容振荡器................................................................90RTC 振荡器........................................................................................91看门狗定时振荡器............................................................................91暂停和唤醒................................................................................................92暂停.....................................................................................................92进入暂停.............................................................................................92静态电流.............................................................................................92唤醒....................................................................................................92看门狗定时器............................................................................................94掩膜选项....................................................................................................96应用电路....................................................................................................97第二部份 程序语言.....................................................................99第二章 指令集介绍.................................................................................101指令集......................................................................................................101指令周期..........................................................................................101数据的传送......................................................................................101算术运算..........................................................................................102逻辑和移位运算..............................................................................102分支和控制的转换..........................................................................102位运算..............................................................................................102查表运算..........................................................................................103其它运算..........................................................................................103指令设定一览表......................................................................................104惯例..................................................................................................104I/O 型单片机使用手册iv第三章 指令定义.....................................................................................107第四章 汇编语言和编译器.....................................................................121常用符号..................................................................................................121语句语法..................................................................................................122名称..................................................................................................122操作项..............................................................................................122操作数项..........................................................................................122注解..................................................................................................122编译伪指令..............................................................................................123条件编译伪指令..............................................................................123文件控制伪指令..............................................................................124程序伪指令......................................................................................126数据定义伪指令..............................................................................130宏指令..............................................................................................132汇编语言指令..........................................................................................136名称..................................................................................................136助记符..............................................................................................136操作数、运算子和表达式..............................................................136其它..........................................................................................................139前置引用..........................................................................................139局部标号..........................................................................................139汇编语言保留字..............................................................................140编译器选项..............................................................................................141编译列表文件格式..................................................................................141源程序列表......................................................................................141编译总结..........................................................................................142其它..................................................................................................142第三部份 开发工具................................................................... 145第五章 单片机开发工具.........................................................................147HT-IDE 集成开发环境............................................................................147盛群单片机仿真器(HT-ICE) ..................................................................149HT-ICE 接口卡.................................................................................149OTP 烧写器.....................................................................................149OTP 适配卡.....................................................................................149系统配置..................................................................................................150HT-ICE 接口卡设置........................................................................151安装..........................................................................................................153系统要求..........................................................................................153硬件安装..........................................................................................153软件安装..........................................................................................154目录v第六章 快速开始.....................................................................................159步骤一:建立一个新项目..............................................................159步骤二:将源程序文件加到项目中..............................................159步骤三:编译项目..........................................................................159步骤四:烧写OTP 单片机.............................................................160步骤五:传送程序与掩膜选项单至Holtek ..................................160附录............................................................................................... 161附录A 特性曲线图...................................................................................163附录B 封装信息.......................................................................................173
上传时间: 2013-10-18
上传用户:blacklee
1 安装:首先安装MPLAB IDE V7.42的程序,然后再安装C的组件PICC8.05-PL.安装过程中全部确认选择,完毕后重启计算机。 2 激活:(PICC8.05-PL) 运行“开始”菜单下的“HI-TECH SOFTWARE”中的 激活(Complier Activation)程序, 再同时启动算号器程序(HtkeyGen.exe),将Last Name前的勾去掉,填入公司名称,算出相应内 容填入激活程序相应栏目,OK即可完成激活。 3 设置: 3.1 将MPLAB 7.42启动后,在文件栏中打开C的桌面项目文件,在Project栏目中 检查 select language Toolsuite...中的选项,所有路径须指向安装路径如C:\HT-PIC\BIN\PICC.EXE; 3.2 在Project栏目中检查 setlanguage Tool Locations中的HI-TECH ToolsuiteXDGR 相关选项,executables中各程序应指向picc.exe Default Search Paths & Directories中 的相关路径应为安装目录如C:\HT-PIC\include 和C:\HT-PIC\lib; 3.3 设置programmer中的select programmer选项为"MPLAB IED 2"(经验:如果不打开编译器,此选项无法选中)。 3.4 设置单片机型号,在Congfigure中的Select Device选择准确的芯片型号;
上传时间: 2016-01-01
上传用户:Ants
机械制造工艺及夹具设计 - 兰州工业高等专科学校ht
上传时间: 2013-04-15
上传用户:eeworm
贴片式微型保险丝小知识ht
上传时间: 2013-06-23
上传用户:eeworm
微功率短距离无线电设备ht
上传时间: 2013-07-31
上传用户:eeworm
电动自行车电路图和充电器电路图ht
上传时间: 2013-05-25
上传用户:eeworm
MC34063设计软件ht
上传时间: 2013-07-26
上传用户:eeworm
电源及产品词汇表ht
上传时间: 2013-07-03
上传用户:eeworm
好就好·模具网-Pro-E Wildfir(野火) 3_0使用小秘诀(6)-模具文章ht
上传时间: 2013-06-08
上传用户:eeworm