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
HT45R35在触控按键中的应用(使用C语言) HT45R35 Demo Board包含12个Touch Switch,这是一种电容式的非接触式触摸按键,它可以用来取代任何的机械式按键。由于C语言具有良好的可读性、可移植性等优点,本文将介绍如何使用HOLTEK C语言来完成HT45R35 12Key Touch Switch Demo Board的软件设计.
上传时间: 2013-10-10
上传用户:bjgaofei
HT45R3X系列触控IC按键识别SWIP介绍 HOLTEK 用于触控按键的IC 有:HT45R34、HT45R36、HT45R38 等。为了帮助使用者,在利用这些IC 开发项目时,省去重复编写按键检测程序的工作,我们特此写出 SWIP,用于HT45R34,HT45R36,HT45R38 的触摸按键检测功能,使用者只需修改UserSet.inc 中的几个参数,便可实现对HT45R34,HT45R36,HT45R38 的触摸按键检测功能。
上传时间: 2013-11-19
上传用户:zjf3110
HT46R74D-1在人体电子秤中的应用 HOLTEK 用于电子秤的IC 有:HT46R71D-1、HT46R72D-1、HT46R73D-1、HT46R74D-1、HT46RU75D-1 等。此款人体电子秤是用HT46R74D-1 开发的高精度人体电子秤。HT46R74D-1 内建双积分A/D转换器及升压和稳压电路,此稳压电路可为Sensor 提供电源。
上传时间: 2014-12-27
上传用户:大三三
HT48E MCU系列1K位EEPROM 本文以HT48E06 为例子,但程序可适用于HOLTEK HT48E06、HT48E10、HT48E30 等,含有1K 位EEPROM Data Memory 的MCU。
上传时间: 2014-12-27
上传用户:lalaruby
基于HT49的MCU控制HT93LC46的读写 HT93LC46EEPROM 是HOLTEK 制造的1K 位系列的EEPROM(电子可擦除只读存储器),一般它用于微控制器的固定数据的存储。在本文中,我们将以HOLTEK 公司8 位微控制器HT49 系列为例,介绍该芯片常用的操作功能代码。用户只需把代码加到程序中,并且在使用HT93LC46 之前将引脚CS/SK/DI/DO 连接即可。
上传时间: 2013-11-02
上传用户:笨小孩
基于HT46R065V的24V VFD八位OTP型单片机 增强A/D 型系列单片机是一款8 位具有高性能精简指令集的单片机,应用相当广泛。秉承HOLTEK 单片机具有的低功耗、I/O 灵活、定时器功能、振荡类型可选、休眠和唤醒功能、看门狗和低电压复位等丰富的功能选项,增强A/D 型单片机具有极高的性价比,其内部集成了系统振荡器HIRC,提供三种频率选择,不需要增加外部元器件。可以广泛适用于各种应用,例如工业控制,消费类产品,家用电器子系统控制等。
上传时间: 2013-11-09
上传用户:ynzfm
HT45R34在12KEY触摸按键中的应用(使用C语言) 本文中我们介绍如何利用我们HOLTEK C语言来完成HT45R34 12Key Touch Switch Demo board的软件设计。
上传时间: 2013-12-22
上传用户:han_zh
HT6221发码的接收原理及应用 HT6221 是HOLTEK 公司生产的多功能编码芯片,采用PPM(Pulse Position Modulation)进行编码
上传时间: 2014-09-10
上传用户:AbuGe
HT45R35VC/R-F型八位OTP单片机 HT45R35V 是一款C/R-F 型具有8 位高性能精简指令集的单片机,专门为需要VFD 功能的产品而设计。 秉承HOLTEK MCU 一般特性,该单片机带有暂停和唤醒功能,振荡器选项等等,这些都保证使用者的应用只需极少的外部元器件便可实现。这款单片机专门为直接与VFD 面板相连的VFD 应用而设计。集成C/R-F 功能,外加功耗低、性能良好、I/O 使用灵活、成本低等优势,使这款单片机可以广泛应用于VFD 相关产品中,例如家电定时产品,各种消费产品,子系统控制器,其他家电应用等方面。
上传时间: 2013-11-07
上传用户:semi1981