HT46R49 Holtek Semiconductor, HT46R49 Datasheet - Page 14

no-image

HT46R49

Manufacturer Part Number
HT46R49
Description
Cost-Effective A/D Type 8-Bit MCU
Manufacturer
Holtek Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
HT46R49
Quantity:
50 000
www.datasheet4u.com
The following example shows how to clear a section of four RAM locations already defined as locations adres1 to
adres4.
data .section
adres1
adres2
adres3
adres4
block
code .section at 0 code
org
start:
loop:
continue:
The important point to note here is that in the example shown above, no reference is made to specific RAM addresses.
Rev. 1.30
mov a,04h
mov block,a
mov a,offset adres1
mov mp,a
clr IAR
inc mp
sdz block
jmp loop
00h
db ?
db ?
db ?
db ?
db ?
data
; setup size of block
; Accumulator loaded with first RAM address
; setup memory pointer with first RAM address
; clear the data at address defined by MP
; increment memory pointer
; check if last memory location has been cleared
Special Purpose Data Memory
HT46R46/C46/R47/C47/R48A/C48A/R49
14
June 5, 2008

Related parts for HT46R49