background image
HYNIX SEMICONDUCTOR INC.
8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS90C320
User’s Manual (Ver. 1.2)
background image
Version 1.2
Published by
MCU Application Team
Copy right
©
©
©
©
2001 Hynix semiconductor, All right reserved.
Additional information of this manual may be served by Hynix semiconductor offices in Korea or Distributors and Repre-
sentatives listed at address directory.
Hynix semiconductor reserves the right to make changes to any information here in at any time without notice.
The information, diagrams and other data in this manual are correct and reliable; however, Hynix semiconductor is in no
way responsible for any violations of patents or other rights of the third party generated by the use of this manual.
REVISION HISTORY
VERSION 1.2 (Oct. 2000) This book
Correct the pin number of 44-MQFP package type on page 6.
VERSION 1.1 (Oct. 1999) Before version
background image
GMS90C320
OCT. 2000 Ver 1.2
Device Naming Structure
H(G)MS90X320
Frequency
Package Type
Blank: 24MHz
Blank:
PL:
Q:
40PDIP
44PLCC
44MQFP
Enhanced ROM-less version
Operating Voltage
C:
L:
Normal voltage
Low voltage
H
y
ni
x
s
e
m
ic
on
du
ctor
M
C
U
XXXX
MCU
S
er
ies
40:
40MHz
50:
50MHz
background image
GMS90C320
OCT. 2000 Ver 1.2
GMS90C320 ordering information
Operating
Voltage (V)
Device Name
ROM size
(bytes)
RAM size
(bytes)
Operating max.
Frequency (MHz)
Package Type
4.25~5.5
GMS90C320 40
GMS90C320 PL40
GMS90C320 Q40
ROM-less
256
40
40PDIP
44PLCC
44MQFP
GMS90C320 50
GMS90C320 PL50
GMS90C320 Q50
ROM-less
256
50
40PDIP
44PLCC
44MQFP
2.7~5.5
GMS90L320
GMS90L320 PL
GMS90L320 Q
ROM-less
256
24
40PDIP
44PLCC
44MQFP
background image
GMS90C320
OCT. 2000 Ver 1.2
1
GMS90C320/L320
CMOS SINGLE-CHIP 8-BIT MICROCONTROLLER
ROM-less Version for 90C52
Features
• Fully compatible to standard MCS-51 microcontroller
• Versions for 40/50 MHz operating frequency
• Low voltage version for 24MHz operating frequency
• 256 bytes of on-chip data RAM
• 64K external program memory space
• 64K external data memory space
• Four 8-bit ports
• Three 16-bit Timers/Counters (Timer 2 with up/down counter feature)
• USART
• Six interrupt sources, two priority levels
• Power saving Idle and power down mode
• 2.7Volt low voltage version available
• P-DIP-40, P-LCC-44, P-MQFP-44 package
The GMS90C320 described in this document is compatible with the standard 80C32 can be used for all present standard
80C32 applications.
Operating Voltage (V)
Device Name
ROM
RAM
Operating
Frequency (MHz)
4.25~5.5
GMS90C320
ROM-less
256
××××
8bit
40/50
2.7~5.5
GMS90L320
ROM-less
256
××××
8bit
24
RAM
256 x 8
T0
T1
ROM-less
CPU
8-BIT
USART
PORT0
PORT3
PORT1
PORT2
T2
I/O
I/O
I/O
I/O
background image
GMS90C320
2
OCT. 2000 Ver 1.2
44-PLCC Pin Configuration
(top view)
(P-LCC-44)
P0.4/AD4
P0.5/AD5
P0.6/AD6
P0.7/AD7
EA
N.C.
ALE
PSEN
P2.7/A15
P2.6/A14
P2.5/A13
P1
.4
P1
.3
P1
.2
P1
.1
/T
2
E
X
P1
.0
/T
2
N.C.
V
CC
P0
.0
/A
D0
P0
.1
/A
D1
P0
.2
/A
D2
P0
.3
/A
D3
WR
/P3
.6
RD
/P3
.7
XTA
L
2
XTA
L
1
V
SS
N.C.
P2
.0
/A8
P2
.1
/A9
P2
.2
/A
1
0
P2
.3
/A
1
1
P2
.4
/A
1
2
P1.5
P1.6
P1.7
RESET
RxD/P3.0
N.C.
TxD/P3.1
INT0/P3.2
INT1/P3.3
T0/P3.4
T1/P3.5
39
38
37
36
35
34
33
32
31
30
29
7
8
9
10
11
12
13
14
15
16
17
6
5
4
3
2
1
44
43
42
41
40
18
19
20
21
22
23
24
25
26
27
28
background image
GMS90C320
OCT. 2000 Ver 1.2
3
40-PDIP Pin Configuration
(top view)
(P-DIP-40)
P0.0/AD0
P0.1/AD1
P0.2/AD2
P0.3/AD3
P0.4/AD4
P0.5/AD5
P0.6/AD6
P0.7/AD7
EA
ALE
PSEN
P1.6
P1.7
RESET
RxD/P3.0
TxD/P3.1
INT0/P3.2
INT1/P3.3
T0/P3.4
T1/P3.5
WR/P3.6
RD/P3.7
39
38
37
36
35
34
33
32
31
30
29
7
8
9
10
11
12
13
14
15
16
17
T2/P1.0
T2EX/P1.1
P1.2
P1.3
P1.4
P1.5
1
2
3
4
5
6
XTAL2
XTAL1
V
S S
18
19
20
V
C C
40
P2.7/A15
P2.6/A14
P2.5/A13
P2.4/A12
P2.3/A11
P2.2/A10
P2.1/A9
P2.0/A8
28
27
26
25
24
23
22
21
background image
GMS90C320
4
OCT. 2000 Ver 1.2
44-PLCC Pin Configuration
(top view)
(P-MQFP-44)
P0.4/AD4
P0.5/AD5
P0.6/AD6
P0.7/AD7
EA
N.C.
ALE
PSEN
P2.7/A15
P2.6/A14
P2.5/A13
P1
.4
P1
.3
P1
.2
P
1
.1
/T
2
E
X
P
1
.0
/T
2
N.
C
.
V
CC
P
0
.0
/A
D
0
P
0
.1
/A
D
1
P
0
.2
/A
D
2
P
0
.3
/A
D
3
WR
/P
3
.6
RD
/P
3
.7
XT
AL
2
XT
AL
1
V
SS
N.
C
.
P
2
.0
/A
8
P
2
.1
/A
9
P2
.2
/A
1
0
P2
.3
/A
1
1
P2
.4
/A
1
2
P1.5
P1.6
P1.7
RESET
RxD/P3.0
N.C.
TxD/P3.1
INT0/P3.2
INT1/P3.3
T0/P3.4
T1/P3.5
33
32
31
30
29
28
27
26
25
24
23
1
2
3
4
5
6
7
8
9
10
11
44
43
42
41
40
39
38
37
36
35
34
12
13
14
15
16
17
18
19
20
21
22
background image
GMS90C320
OCT. 2000 Ver 1.2
5
Logic Symbol
Port 0
XTAL1
XTAL2
RESET
EA
ALE
PSEN
8-bit Digital I/O
Port 1
8-bit Digital I/O
Port 2
8-bit Digital I/O
Port 3
8-bit Digital I/O
V
C C
V
S S
background image
GMS90C320
6
OCT. 2000 Ver 1.2
Pin Definitions and functions
Symbol
Pin Number
Input/
Output
Function
P-LCC-44
P-DIP-40
P-MQFP-
44
P1.0-P1.7
2-9
1-8
40-44,
1-3
I/O
Port1
is an 8-bit bidirectional I/O port with internal pull-ups. Port 1 pins
that have 1s written to them are pulled high by the internal pull-up
resistors and can be used as inputs. As inputs, port 1 pins that are
externally pulled low will source current because of the pulls-ups
(I
IL
, in the DC characteristics). Pins P1.0 and P1.1 also. Port 1
also receives the low-order address byte during program memory
verification. Port1 also serves alternate functions of Timer 2.
2
3
1
2
40
41
P1.0/T2: Timer/counter 2 external count input
P1.1/T2EX: Timer/counter 2 trigger input
P3.0-P3.7
11,13-
19
10-17
5, 7-
13
I/O
Port 3
is an 8-bit bidirectional I/O port with internal pull-ups. Port 3 pins
that have 1s written to them are pulled high by the internal pull-up
resistors, and in that state they can be used as inputs. As inputs,
port 3 pins being externally pulled low will source current (I
IL
, in
the DC characteristics) because of internal pulls-up resistors. Port
3 also serves the special features of the 80C51 family, as listed
below.
11
10
5
P3.0/RxD
receiver data input (asynchronous) or data input
output (synchronous) of the serial interface 0
13
11
7
P3.1 / TxD
transmitter data output (asynchronous) or clock
output (synchronous) of the serial interface 0
14
12
8
P3.2 / INT0
interrupt 0 input / timer 0 gate control
15
13
9
P3.3 / INT1
interrupt 1 input / timer 1 gate control
16
14
10
P3.4 / T0
counter 0 input
17
15
11
P3.5 / T1
counter 1 input
18
16
12
P3.6 / WR
the write control signal latches the data byte from
port 0 into the external data memory
19
17
13
P3.7 / RD
the read control signal enables the external data
memory to port 0
XTAL2
20
18
14
O
XTAL2
Output of the inverting oscillator amplifier
XTAL1
21
19
15
I
XTAL1
Input to the inverting oscillator amplifier and input to the internal
clock generator circuits.
To drive the device from an external clock source, XTAL1 should
be driven, while XTAL2 is left unconnected. There are no require-
ments on the duty cycle of the external clock signal, since the
input to the internal clocking circuitry is divided down by a divide-
by-two flip-flop. Minimum and maximum high and low times as
well as rise fall times specified in the AC characteristics must be
observed.
background image
GMS90C320
OCT. 2000 Ver 1.2
7
P2.0-P2.7
24-31
21-28
18-25
I/O
Port 2
Port 2 is an 8-bit bidirectional I/O port with internal pull-ups. Port 2
pins that have 1s written to them are pulled high by the internal
pull-up resistors and can be used as inputs. As inputs, port 2 pins
that are externally pulled low will source current because of the
pulls-ups (I
IL
, in the DC characteristics). Port 2 emits the high-
order address byte during fetches from external program memory
and during accesses to external data memory that use 16-bit
addresses (MOVX @DPTR). In this application it uses strong
internal pull-ups when emitting 1s. During accesses to external
data memory that use 8-bit addresses (MOVX @Ri), port 2 emits
the contents of the P2 special function register.
PSEN
32
29
26
O
The Program Store Enable
The read strobe to external program memory when the device is
executing code from the external program memory. PSEN is acti-
vated twice each machine cycle, except that two PSEN activation
are skipped during each access to external data memory. PSEN
is not activated during fetches from internal program memory.
RESET
10
9
4
I
RESET
A high level on this pin for two machine cycles while the oscillator
is running resets the device. An internal diffused resistor to V
S S
permits power-on reset using only an external capacitor to V
C C
.
ALE
33
30
27
O
The Address Latch Enable
Output pulse for latching the low byte of the address during an
access to external memory. In normal operation, ALE is emitted
at a constant rate of 1/6 the oscillator frequency, and can be used
for external timing or clocking. Note that one ALE pulse is skipped
during each access to external data memory.
EA
35
31
29
I
External Access Enable
EA must be external held low to enable the device to fetch code
from external program memory locations 0000
H
to FFFF
H
. If EA is
held high, the device executes from internal program memory
unless the program counter contains an address greater than its
internal memory size.
P0.0-P0.7
43-36
39-32
37-30
I/O
Port 0
Port 0 is an 8-bit open-drain bidirectional I/O port. Port 0 pins that
have 1s written to them float and can be used as high-impedance
inputs. Port 0 is also the multiplexed low-order address and data
bus during accesses to external program and data memory. In
this application it uses strong internal pull-ups when emitting 1s.
Port 0 also outputs the code bytes during program verification in
the GMS97C5x. External pull-up resistors are required during
program verification.
V
S S
22
20
16
-
Circuit ground potential
V
C C
44
40
38
-
Supply terminal for all operating modes
N.C.
1,12,
23,34
-
6,17,
28,39
-
No connection
Symbol
Pin Number
Input/
Output
Function
P-LCC-44
P-DIP-40
P-MQFP-
44
background image
GMS90C320
8
OCT. 2000 Ver 1.2
Function Description
The GMS90 series is fully compatible to the standard 8051 microcontroller family.
It is compatible with the standard 80C32. While maintaining all architectural and operational characteristics of the standard
80C32, the GMS90C320 incorporates some enhancements in the Timer 2 unit.
Figure 1 shows a block diagram of the GMS90C320
Figure 1 Block Diagram of the GMS90C320
RAM
256 x 8
Port 0
Port 0
8-bit Digital I/O
Port 1
Port 1
8-bit Digital I/O
Port 2
Port 2
8-bit Digital I/O
Port 3
Port 3
8-bit Digital I/O
CPU
Timer 0
Timer 1
Timer 2
Interrupt Unit
Serial Channel
OSC & Timing
XTAL1
XTAL2
RESET
EA
ALE
PSEN
background image
GMS90C320
OCT. 2000 Ver 1.2
9
CPU
The GMS90C320 is efficient both as a controller and as an arithmetic processor. It has extensive facilities for binary and BCD
arithmetic and excels in its bit-handling capabilities. Efficient use of program memory results from an instruction set con-
sisting of 44% one-byte, 41% two-byte, and 15% three-byte instructions. With a 12 MHz crystal, 58% of the instructions are
executed in 1.0
µ
s.
Special Function Register PSW
Reset value of PSW is 00
H .
Bit
Function
CY
Carry Flag
AC
Auxiliary Carry Flag (for BCD operation)
F0
General Purpose Flag
RS1
0
0
1
1
RS0
0
1
0
1
Register Bank select control bits
Bank 0 selected, data address 00
H
-07
H
Bank 1 selected, data address 08
H
-0F
H
Bank 2 selected, data address 10
H
-17
H
Bank 3 selected, data address 18
H
-1F
H
OV
Overflow Flag
F1
General Purpose Flag
P
Parity Flag
Set/cleared by hardware each instruction cycle to indicate an odd/
even number of “one” bits in the accumulator, i.e. even parity.
MSB
LSB
Bit No.
7
6
5
4
3
2
1
0
Addr. D0
H
CY
AC
F0
RS1
RS2
OV
F1
P
PSW
background image
GMS90C320
10
OCT. 2000 Ver 1.2
Special Function Registers
All registers, except the program counter and the four general purpose register banks, reside in the special function register
area.
The 27 special function registers (SFR) include pointers and registers that provide an interface between the CPU and the other
on-chip peripherals. There are also 128 directly addressable bits within the SFR area.
All SFRs are listed in Table 1, Table 2, and Table 3.
In Table 1 they are organized in numeric order of their addresses. In Table 2 they are organized in groups which refer to the
functional blocks of the GMS90C320. Table 3 illustrates the contents of the SFRs.
Table 1
Special Function Registers in Numeric Order of their Addresses
Address
Register
Contents after
Reset
Address
Register
Contents after
Reset
80
H
81
H
82
H
83
H
84
H
85
H
86
H
87
H
P0
1)
SP
DPL
DPH
reserved
reserved
reserved
PCON
1)
: Bit-addressable Special Function Register
FF
H
07
H
00
H
00
H
XX
H 2)
XX
H 2)
XX
H 2)
0XXX0000
B2)
2)
: X means that the value is indeterminate and the location is reserved
A0
H
A1
H
A2
H
A3
H
A4
H
A5
H
A6
H
A7
H
P2
1)
reserved
reserved
reserved
reserved
reserved
reserved
reserved
FF
H
XX
H 2)
XX
H
2)
XX
H
2)
XX
H
2)
XX
H
2)
XX
H
2)
XX
H
2)
88
H
89
H
8A
H
8B
H
8C
H
8D
H
8E
H
8F
H
TCON
1)
TMOD
TL0
TL1
TH0
TH1
reserved
reserved
00
H
00
H
00
H
00
H
00
H
00
H
XX
H
2)
XX
H
2)
A8
H
A9
H
AA
H
AB
H
AC
H
AD
H
AE
H
AF
H
IE
1)
reserved
reserved
reserved
reserved
reserved
reserved
reserved
0X000000
B2)
XX
H 2)
XX
H
2)
XX
H
2)
XX
H
2)
XX
H
2)
XX
H
2)
XX
H
2)
90
H
91
H
92
H
93
H
94
H
95
H
96
H
97
H
P1
1)
reserved
reserved
reserved
reserved
reserved
reserved
reserved
FF
H
00
H
XX
H
2)
XX
H
2)
XX
H
2)
XX
H
2)