Semiconductor Group of Hyundai Electronics Industrial Co., Ltd.
MicroElectronics
Version 1.0
Published by
MCU Application Team
HYUNDAI MicroElectronics All right reserved.
2001
2001
20012001
Additional information of this manual may be served by HYUNDAI MicroElectronics offices in Korea or Distributors and Representatives listed at address directory.
HYUNDAI MicroElectronics 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, HYUNDAI MicroElectronics is in no way responsible for any violat ion s of patent s or other ri gh ts of the t hird par ty generated by
the use of this manual.
GMS90X5XC SeriesHYUNDAI MicroElectronics
Device Naming Structure
GMS90X5XC
Mask ROM version
HYUNDAI MicroElectronics MCU
- GCXXX XX XX
ROM size
1:
2:
4:
Operating Voltage
C:L:4.25~5.5V
GMS90X5XC Series Selection Guide
Frequency
Blank:
16:16MHz
24:
40:
Package Type
Blank:
PL:
Q:
ROM Code serial No.
12MHz
24MHz
40MHz
40PDIP
44PLCC
44MQFP
4k bytes
8k bytes
16k bytes
2.7~3.6V
Operating
Voltage
(V)
4.25~5.54K
2.7~3.64K
Jan. 2001 Ver 1.0
ROM size
MASK
8K
16K
8K
16K
(bytes)
RAM size
(bytes)
128
256
256
128
256
256
Device Name
GMS90C51C
GMS90C52C
GMS90C54C
GMS90L51C
GMS90L52C
GMS90L54C
Operating
Frequency
12/24/40
12/24/40
12/24/40
12/16
12/16
12/16
(MHz)
GMS90X5XC SeriesHYUNDAI MicroElectronics
GMS90C51C
GMS90L51C(Low voltage versions)
• Fully compatible to standard MCS-51 microcontroller
• Wide operating frequency up to 40MHz
(for more detail, see “GMS90X5XC Series Selection Guide”)
• X2 Speed Improvement capability (
20MHz @5V (Equivalent to 40MHz @5V)
8MHz @3V (Equivalent to 16MHz @3V)
•4K × 8 ROM
• 128 × 8 RAM
• 64K external program memory space
• 64K external data memory space
• Four 8-bit ports
• Two 16-bit Timers / Counters
•USART
• Programmable ALE pin enable / disable (Low
• Five 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
6 clocks/machine cycle
EMI
)
)
Block Diagram
Jan. 2001 Ver 1.0
T 0
T 1
ROM / EPROM
RAM
128 × 8
CPU
4K × 8
8-BIT
USART
PORT 0
PORT 1
PORT 2
PORT 3
I/O
I/O
I/O
I/O
GMS90X5XC SeriesHYUNDAI MicroElectronics
GMS90C52C/54C
GMS90L52C/54C(Low voltage versions)
• Fully compatible to standard MCS-51 microcontroller
• Wide operating frequency up to 40MHz
(for more detail, see “GMS90X5XC Series Selection Guide”)
• X2 Speed Improvement capability (
20MHz @5V (Equivalent to 40MHz @5V)
8MHz @3V (Equivalent to 16MHz @3V)
•8K/16K bytes ROM
• 256 × 8 RAM
• 64K external program memory space
• 64K external data memory space
• Four 8-bit ports
• Three 16-bit Timers / Counters (Timer2 with up/down counter feature)
Port 1 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 intern al pu ll-u p res is tors and c an be
used as inputs. As inputs, port 1 pins that are
externally pulled low will source current because of
the pulls-ups (I
, in the DC characteristics). Pins P1.0
IL
and P1.1 also. Port1 also receives the low-order
address byte during program memory verification.
Port1 also serves alternate functions of Timer 2.
P1.0 / T2 :Timer/counter 2 external count input
P1.1 / T2EX :Timer/counter 2 trigger input
In GMS90X52C/54C:
P1.0 / T2, Clock Out : Timer/counter 2 external count
input, Clock Out
Port 3
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 intern al pu ll-u p res is tors and c an be
used as inputs. As inputs, port 3 pins that are
externally pulled low will source current because of
the pulls-ups (I
, in the DC characteristic s). Port 3 also
IL
serves the special features of the 80C51 family, as
listed below.
P3.0 / RxD
receiver data input (asynchronous) or
data input output(s yn chronous) of serial
interface 0
P3.1 / TxD
transmitter data output (asynchronous)
or clock output (synchronous) of the
serial interface 0
P3.2 /INT0
P3 .3 / IN T 1
P3.4 /T0
P3.5 /T1
P3.6 / WR
interrupt 0 input/timer 0 gate control
interrupt 1 input/timer 1 gate control
counter 0 input
counter 1 input
the write control signal latche s t he data
byte from port 0 into the external data
memory
P3.7 /RD
the read control signal enables the
external data memory to port 0
XTAL2
Output of the inverting oscillator amplifier.
6Jan. 2001 Ver 1.0
GMS90X5XC SeriesHYUNDAI MicroElectronics
Symbol
Pin Number
PLCC-44PDIP-40MQFP-
44
Input/
Output
XTAL1211915I
P2.0-P2.724-3121-2818-25I/O
PSEN
322926O
RESET1094I
Function
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 requirements 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.
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 intern al pu ll-u p res is tors and c an be
used as inputs. As inputs, port 2 pins that are
externally pulled low will source current because of
the pulls-ups (I
, in the DC characteristics).Port 2
IL
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.
The Program Store Enable
The read strobe to external program memory when
the device is executing code from the external
program memory. PSEN is activated twice each
machine cycle, except that two PSEN
activati ons are
skipped during each access to external data memory.
PSEN is not activated during fetches from internal
program memory.
RESET
A high level on this pin for two machine cycles while
the oscilla tor is runni ng resets the device. An interna l
diffused resistor to V
only an external capacitor to V
permits power-on reset using
SS
CC
.
Jan. 2001 Ver 1.07
HYUNDAI MicroElectronicsGMS90X5XC Series
Symbol
ALE /
Pin Number
PLCC-44PDIP-40MQFP-
44
333027O
Input/
Output
PROG
EA
/ V
PP
353129IExternal Access Enable / Program Supply Voltage
P0.0-P0.736-4332-3930-37I/O
V
SS
V
CC
N.C.1,12
222016444038-
-6,17
23,34
28,39
Function
The Address Latch Enable / Program pulse
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. This pin
is also the program pulse input (PROG
EPROM programming.
If desired, ALE operation can be disabled by setting
bit 0 of SFR location 8E
. With this bit set, the pin is
H
weakly pulled high. The ALE disable feature will be
terminated by reset. Setting the ALE-disable bit has
no affect if the microcontroller is in external execution
mode.
must be external held low to enable the device to
EA
fetch code from external program memory locations
0000H to FFFFH. 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. This pin also receives the
12.75V programming supply voltage (V
EPROM programming.
Note; however, that if any of the Lock bits are
programmed, EA
will be internally
latched on reset.
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 multipl exed low-orde r 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
GMS97X5X. External pull-up resistors are required
during program verification.
Circuit ground potential
Supply terminal
No connection
-
for all operating modes
) during
) during
PP
8Jan. 2001 Ver 1.0
GMS90X5XC SeriesHYUNDAI MicroElectronics
FUNCTIONAL DESCRIPTION
The GMS90X5XC series is fully compatible to the standard 8051 microcontroller family.
It is compatible with the general 8051 family. While maintaining all architectural and operational characteristics
of the general 8051 family.
Figure 1 shows a block diagram of the GMS90X5XC series
XTAL1
XTAL2
RESET
EA
/V
ALE/PROG
PSEN
OSC & TIMING
CPU
PP
Timer 0
Timer 1
Timer 2
Interrupt Unit
Serial Channel
RAM
128/256×8
Figure 1. Block Diagram of the GMS90X5XC series
ROM/EPROM
4K/8K/16K
Port 0
Port 1
Port 2
Port 3
Port 0
8-bit Digit. I/O
Port 1
8-bit Digit. I/O
Port 2
8-bit Digit. I/O
Port 3
8-bit Digit. I/O
Jan. 2001 Ver 1.09
HYUNDAI MicroElectronicsGMS90X5XC Series
CPU
The GMS90X5XC series is efficient both as a controller and as an arithmetic processor. It has exten sive facilities for binary and BCD arithmetic and excels in its bit-handling capabilities. Efficient use of program memory
results from an i nstructio n set consist ing of 44% o ne-byte, 41% two-byte, and 15% three-byt e instruction s. With
a 12 MHz crystal, 58% of the instructions are executed in 1.0µs (40MHz: 300ns).
Special Function Register PSW
LSB
PSW
Bit No.
Addr. D0
MSB
76543210
H
CYACF0 RS1 RS0 OVF1P
BitFunction
Carry Flag
Auxiliary Carry Flag
(for BCD operations)
General Purpose Flag
Register Bank select control bits
Bank 0 selected, data address 00
Bank 1 selected, data address 08H - 0F
Bank 2 selected, data address 10H - 17
Bank 3 selected, data address 18H - 1F
H
- 07
H
H
H
H
Overflow Flag
General Purpose Flag
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.
RS1
0
0
1
1
CY
AC
F0
RS0
0
1
0
1
OV
F1
P
Reset value of PSW is 00H.
10Jan. 2001 Ver 1.0
GMS90X5XC SeriesHYUNDAI MicroElectronics
SPECIAL FUNCTION REGISTERS
All registers, except the program co unter and the four general pu rpose register banks, r eside in the special fu nction register area.
The 28 special function registers (SFR) include pointers and registers that provide an interface b etween 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 GMS90X5XC series. Table 3 illustrates the contents of the SFRs
Table 1. Special Function Registers in Numeric Order of their Addresses