English
Language : 

HT46R72D-1A Datasheet, PDF (8/44 Pages) Holtek Semiconductor Inc – Dual Slope A/D Type MCU with LCD
HT46R72D-1A
Data Memory - RAM
Bank 0 of the data memory has a capacity of 123´8 bits,
and is divided into two functional groups, namely the
special function registers of 27´8 bit capacity and the
general purpose data memory of 96´8 bit capacity. Most
locations are readable/writable, although some are read
only. The special function register are overlapped in all
banks.
Any unused space before 20H is reserved for future ex-
panded usage, reading these locations will get ²00H².
The general purpose data memory, addressed from 20H
to 7FH , is used for data and control information under
instruction commands. All of the data memory areas can
handle arithmetic, logic, increment, decrement and ro-
tate operations directly. Except for some dedicated bits,
each bit in the data memory can be set and reset by the
²SET [m].i² and ²CLR [m].i² instructions. They are also
indirectly accessible through the memory pointer regis-
ters, MP0 and MP1.
0 0 H In d ir e c t A d d r e s s in g R e g is te r 0
01H
M P0
0 2 H In d ir e c t A d d r e s s in g R e g is te r 1
03H
M P1
04H
BP
05H
ACC
06H
PCL
07H
TB LP
08H
TB LH
09H
M ODE
0A H
STATU S
0B H
IN T C 0
0C H
0D H
TM R 0
0E H
TM R 0C
0FH
TM R 1H
10H
TM R 1L
11H
TM R 1C
12H
PA
13H
PAC
14H
PB
15H
PBC
16H
17H
18H
ADCR
19H
R e s e rv e d
1A H
ADCD
1B H
1C H
W D TC
1D H
W D TD
1E H
IN T C 1
1FH
CHPRC
20H
G e n e ra l P u rp o s e
D a ta M e m o ry
(9 6 B y te s )
7FH
S p e c ia l P u r p o s e
D a ta M e m o ry
:U nused
R e a d a s "0 0 "
RAM Mapping
Bank 1 contains the LCD Data Memory locations. After
first setting up BP to the value of ²01H² to access Bank 1
this bank must then be accessed indirectly using the
Memory Pointer MP1. With BP set to a value of ²01H²,
using MP1 to indirectly read or write to the data memory
areas with addresses from 40H~50H will result in opera-
tions to Bank 1. Directly addressing the Data Memory
will always result in Bank 0 being accessed irrespective
of the value of BP.
Indirect Addressing Register
Location 00H and 02H are indirect addressing registers
that are not physically implemented. Any read/write op-
eration of [00H] and [02H] accesses the RAM pointed to
by MP0 (01H) and MP1 (03H) respectively. Reading lo-
cation 00H or 02H indirectly returns the result 00H.
While, writing it indirectly leads to no operation. The
memory pointer register (MP0, MP1) are 7-bit registers.
The function of data movement between two indirect ad-
dressing registers is not supported. The memory pointer
registers, MP0 and MP1, are both 7-bit registers used to
access the RAM by combining corresponding indirect
addressing registers. MP0 can only be applied to data
memory, while MP1 can be applied to data memory and
LCD display memory.
Accumulator - ACC
The accumulator (ACC) is related to the ALU opera-
tions. It is also mapped to location 05H of the RAM and
is capable of operating with immediate data. The data
movement between two data memory locations must
pass through the ACC.
Arithmetic and Logic Unit - ALU
This circuit performs 8-bit arithmetic and logic opera-
tions and provides the following functions:
· Arithmetic operations (ADD, ADC, SUB, SBC, DAA)
· Logic operations (AND, OR, XOR, CPL)
· Rotation (RL, RR, RLC, RRC)
· Increment and Decrement (INC, DEC)
· Branch decision (SZ, SNZ, SIZ, SDZ etc.)
The ALU not only saves the results of a data operation
but also changes the status register.
Status Register - STATUS
The status register (0AH) is 8 bits wide and contains, a
carry flag (C), an auxiliary carry flag (AC), a zero flag (Z),
an overflow flag (OV), a power down flag (PDF), and a
watchdog time-out flag (TO). It also records the status
information and controls the operation sequence.
Except for the TO and PDF flags, bits in the status regis-
ter can be altered by instructions similar to other regis-
ters. Data written into the status register does not alter
the TO or PDF flags. Operations related to the status
Rev. 1.00
8
June 25, 2008