HT48R064G/065G/066G/0662G
Enhanced I/O Type 8-Bit OTP MCU with OPA
Data Memory
The Data Memory is a volatile area of 8-bit wide RAM internal memory and is the location where
temporary information is stored.
Structure
Divided into two sections, the first of these is an area of RAM where special function registers are
located. These registers have fixed locations and are necessary for correct operation of the device. Many
of these registers can be read from and written to directly under program control, however, some remain
protected from user manipulation. The second area of Data Memory is reserved for general purpose use.
All locations within this area are read and write accessible under program control.
Device
HT48R064G
HT48R065G
HT48R066G
HT48R0662G
Capacity
64´8
96´8
128´8
224´8
Banks
¾
¾
¾
0, 1
The two sections of Data Memory, the Special Purpose and General Purpose Data Memory are located
at consecutive locations. All are implemented in RAM and are 8 bits wide but the length of each mem-
ory section is dictated by the type of microcontroller chosen. The start address of the Data Memory for
all devices is the address ²00H².
All microcontroller programs require an area of read/write memory where temporary data can be
stored and retrieved for use later. It is this area of RAM memory that is known as General Purpose Data
Memory. This area of Data Memory is fully accessible by the user program for both read and write
operations. By using the ²SET [m].i² and ²CLR [m].i² instructions individual bits can be set or reset
under program control giving the user a large range of flexibility for bit manipulation in the Data
Memory.
H T48R 064G
00H
IA R 0
01H
M P0
00H
IA R 1
01H
M P1
H T48R 065G
IA R 0
M P0
IA R 1
M P1
H T48R 066G
IA R 0
M P0
IA R 1
M P1
H T48R 0662G
B ank 0
B ank 1
IA R 0
IA R 0
M P0
M P0
IA R 1
IA R 1
M P1
M P1
S p e c ia l
P u rp o s e
R e g is te r s
3FH
40H
7 F H 6 4 b y te s
9 6 b y te s
9FH
1 2 8 b y te s
BFH
FFH
T o ta l 2 2 4 b y te s
5FH
G e n e ra l
P u rp o s e
R e g is te r s
Data Memory Structure
Note:
Most of the Data Memory bits can be directly manipulated using the ²SET [m].i² and ²CLR
[m].i² with the exception of a few dedicated bits. The Data Memory can also be accessed
through the memory pointer registers.
Rev. 1.10
29
October 23, 2012