English
Language : 

GMS81C1102 Datasheet, PDF (34/89 Pages) Hynix Semiconductor – 8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81C1102 / GMS81C1202
12.3 Data Memory
Figure 12-6 shows the internal Data Memory space avail-
able. Data Memory is divided into two groups, a user
RAM(including Stack) and control registers.
00H
DATA
MEMORY
(including STACK)
7FH
C0H
CONTROL
REGISTERS
FFH
Figure 12-6 Data Memory Map
Internal Data Memory addresses are always one byte wide,
which implies an address space of 128 bytes including the
stack area.
The stack pointer should be initialized within 00H to 7FH
by software because its value is undefined after RESET.
The Stack area is defined at the Data Memory area, so the
stack should not be overlapped by manipulating RAM Da-
ta. For example, we assumed the Stack pointer is 6F. If this
address is accessed by program, the stack value is changed.
So the malfunction is occurred.
The control registers are used by CPU and Peripheral func-
tions for controlling the desired operation of the device.
Therefore these registers contain control and status bits for
the interrupt system, the timer/ counters, analog to digital
converters, I/O ports. The control registers are in address
C0H to FFH.
Note that unoccupied addresses may not be implemented
on the chip. Read accesses to these addresses will in gen-
eral return random data, and write accesses will have an in-
determinate effect.
More detail informations of each register are explained in
each peripheral sections.
Note: Write only registers can not be accessed by bit ma-
nipulation instruction. Do not use read-modify-write
instruction. Use byte manipulation instruction.
Example; To write at CKCTLR
LDM CKCTLR,#09H ;Divide ratio ÷16
Address
C0H
C1H
C2H
C3H
C4H
C5H
CAH
CBH
CCH
D0H
D1H
D1H
D1H
D2H
D3H
D3H
D4H
D4H
D4H
D5H
DEH
E2H
E3H
E4H
E5H
E6H
EAH
EBH
ECH
ECH
EDH
EFH
Symbol
RA
RAIO
RB
RBIO
RC
RCIO
RAFUNC
RBFUNC
PUPSEL
TM0
T0
TDR0
CDR0
TM1
TDR1
T1PPR
T1
CDR1
T1PDR
PWMHR
BUR
IENH
IENL
IRQH
IRQL
IEDS
ADCM
ADCR
BITR
CKCTLR
WDTR
PFDR
R/W RESET Value
R/W
Undefined
W
0000_0000
R/W
Undefined
W
---0_0000
R/W
Undefined
W
----_--00
W
0000_0000
W
---0_0000
W
----_--00
R/W
--00_0000
R
0000_0000
W
1111_1111
R
0000_0000
R/W
0000_0000
W
1111_1111
W
1111_1111
R
0000_0000
R
0000_0000
R/W
0000_0000
W
----_0000
W
1111_1111
R/W
0000_----
R/W
000-_----
R/W
0000_----
R/W
000-_----
R/W
----_0000
R/W
--00_0001
R
Undefined
R
0000_0000
W
-001_0111
R/W
0111_1111
R/W
----_-100
Table 12-3 RESET Value of Control Registers
Note: Several names are given at same address. Refer to
below table.
Addr.
D1H
D3H
D4H
ECH
When read
Timer
Mode
Capture
Mode
PWM
Mode
T0 CDR0
-
-
T1 CDR1 T1PDR
BITR
When write
Timer
Mode
PWM
Mode
TDR0
-
TDR1 T1PPR
-
T1PDR
CKCTLR
Table 12-4 Various Register Name in Same Adress
Jan. 2002 ver 2.0
31