欢迎访问ic37.com |
会员登录 免费注册
发布采购

HT46R065D 参数 Datasheet PDF下载

HT46R065D图片预览
型号: HT46R065D
PDF下载: 下载PDF文件 查看货源
内容描述: 增强A / D型MCU,具有高电流LED驱动器 [Enhanced A/D Type MCU with High Current LED Driver]
分类和应用: 驱动器
文件页数/大小: 114 页 / 744 K
品牌: HOLTEK [ HOLTEK SEMICONDUCTOR INC ]
 浏览型号HT46R065D的Datasheet PDF文件第23页浏览型号HT46R065D的Datasheet PDF文件第24页浏览型号HT46R065D的Datasheet PDF文件第25页浏览型号HT46R065D的Datasheet PDF文件第26页浏览型号HT46R065D的Datasheet PDF文件第28页浏览型号HT46R065D的Datasheet PDF文件第29页浏览型号HT46R065D的Datasheet PDF文件第30页浏览型号HT46R065D的Datasheet PDF文件第31页  
HT46R064D/065D/066D  
Enhanced A/D Type 8-Bit OTP MCU with LED Driver  
Indirect Addressing Program Example  
data .section ¢data¢  
adres1 db ?  
adres2 db ?  
adres3 db ?  
adres4 db ?  
block db ?  
code .section at 0 code  
org 00h  
start:  
mov a,04h  
; setup size of block  
mov block,a  
mov a,offset adres1  
mov mp0,a  
; Accumulator loaded with first RAM address  
; setup memory pointer with first RAM address  
loop:  
clr IAR0  
inc mp0  
sdz block  
jmp loop  
; clear the data at address defined by MP0  
; increment memory pointer  
; check if last memory location has been cleared  
continue:  
The important point to note here is that in the example shown above, no reference is made to specific  
Data Memory addresses.  
Accumulator - ACC  
The Accumulator is central to the operation of any microcontroller and is closely related with  
operations carried out by the ALU. The Accumulator is the place where all intermediate results from  
the ALU are stored. Without the Accumulator it would be necessary to write the result of each  
calculation or logical operation such as addition, subtraction, shift, etc., to the Data Memory resulting  
in higher programming and timing overheads. Data transfer operations usually involve the temporary  
storage function of the Accumulator; for example, when transferring data between one user defined  
register and another, it is necessary to do this by passing the data through the Accumulator as no direct  
transfer between two registers is permitted.  
Program Counter Low Register - PCL  
To provide additional program control functions, the low byte of the Program Counter is made  
accessible to programmers by locating it within the Special Purpose area of the Data Memory. By  
manipulating this register, direct jumps to other program locations are easily implemented. Loading a  
value directly into this PCL register will cause a jump to the specified Program Memory location,  
however, as the register is only 8-bit wide, only jumps within the current Program Memory page are  
permitted. When such operations are used, note that a dummy cycle will be inserted.  
Status Register - STATUS  
This 8-bit register contains the zero flag (Z), carry flag (C), auxiliary carry flag (AC), overflow flag  
(OV), power down flag (PDF), and watchdog time-out flag (TO). These arithmetic/logical operation  
and system management flags are used to record the status and operation of the microcontroller.  
With the exception of the TO and PDF flags, bits in the status register can be altered by instructions like  
most other registers. Any data written into the status register will not change the TO or PDF flag. In  
addition, operations related to the status register may give different results due to the different  
instruction operations. The TO flag can be affected only by a system power-up, a WDT time-out or by  
executing the ²CLR WDT² or ²HALT² instruction. The PDF flag is affected only by executing the  
²HALT² or ²CLR WDT² instruction or during a system power-up.  
Rev. 1.00  
22  
January 12, 2011  
 复制成功!