Resumo do conteúdo contido na página número 1
HYUNDAI MICRO ELECTRONICS
8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS90X51C
GMS90X52C
GMS90X54C
User’s Manual (Ver. 1.0)
+<81'$,
MicroElectronics
Semiconductor Group of Hyundai Electronics Industrial Co., Ltd.
Resumo do conteúdo contido na página número 2
Version 1.0 Published by MCU Application Team ©2 ©2 ©2 ©200 00 00 001 1 1 1 HYUNDAI MicroElectronics All right reserved. Additional information of this manual may be served by HYUNDAI MicroElectronics offices in Korea or Dis- tributors 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 M
Resumo do conteúdo contido na página número 3
GMS90X5XC Series HYUNDAI MicroElectronics Device Naming Structure GMS90X5XC - GCXXX XX XX Frequency Blank: 12MHz 16: 16MHz 24: 24MHz 40: 40MHz Package Type Blank: 40PDIP PL: 44PLCC Q: 44MQFP ROM Code serial No. ROM size 1: 4k bytes 2: 8k bytes 4: 16k bytes Operating Voltage C: 4.25~5.5V L: 2.7~3.6V GMS90X5XC Series Selection Guide ROM size (bytes) Operating RAM size Operating Device Name Voltage (V) (bytes) Frequency (MHz) MASK 4.25~5.5 4K 128 GMS90C51C 12/24/40 8K 256 GMS90C52C 12/24/40 16K 256
Resumo do conteúdo contido na página número 4
GMS90X5XC Series HYUNDAI 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 (6 clocks/machine cycle) 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
Resumo do conteúdo contido na página número 5
GMS90X5XC Series HYUNDAI 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 (6 clocks/machine cycle) 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 • Thr
Resumo do conteúdo contido na página número 6
HYUNDAI MicroElectronics GMS90X5XC Series PIN CONFIGURATION 44-PLCC Pin Configuration (top view) INDEX CORNER P0.4 / AD4 P1.5 7 39 P0.5 / AD5 P1.6 38 8 P0.6 / AD6 P1.7 9 37 P0.7 / AD7 RESET 10 36 EA / V RxD / P3.0 11 35 PP N.C.* N.C.* 34 12 ALE / PROG TxD / P3.1 33 13 PSEN INT0 / P3.2 14 32 P2.7 / A15 INT1 / P3.3 31 15 P2.6 / A14 T0 / P3.4 16 30 P2.5 / A13 T1 / P3.5 17 29 N.C.: Do not connect. 2 Jan. 2001 Ver 1.0 WR / P3.6 18 6 P1.4 RD / P3.7 19 5 P1.3 XTAL2 20 P1.2 4 XTAL1 21 3 P1.1 / T2EX V
Resumo do conteúdo contido na página número 7
GMS90X5XC Series HYUNDAI MicroElectronics 40-PDIP Pin Configuration (top view) T2 / P1.0 V CC 1 40 T2EX / P1.1 2 39 P0.0 / AD0 P1.2 P0.1 / AD1 3 38 P1.3 P0.2 / AD2 4 37 P1.4 5 36 P0.3 / AD3 P1.5 P0.4 / AD4 6 35 P1.6 P0.5 / AD5 7 34 P1.7 P0.6 / AD6 8 33 RESET P0.7 / AD7 9 32 RxD / P3.0 10 31 EA / V PP TxD / P3.1 11 30 ALE / PROG INT0 / P3.2 12 29 PSEN INT1 / P3.3 13 28 P2.7 / A15 T0 / P3.4 14 27 P2.6 / A14 T1 / P3.5 15 26 P2.5 / A13 WR / P3.6 16 25 P2.4 / A12 RD / P3.7 17 24 P2.3 / A11 XTAL2 18 2
Resumo do conteúdo contido na página número 8
HYUNDAI MicroElectronics GMS90X5XC Series 44-MQFP Pin Configuration (top view) P1.5 1 33 P0.4 / AD4 P1.6 2 32 P0.5 / AD5 P1.7 P0.6 / AD6 3 31 RESET 4 30 P0.7 / AD7 RxD / P3.0 5 29 EA / V PP N.C.* 6 28 N.C.* TxD / P3.1 27 ALE / PROG 7 INT0 / P3.2 8 26 PSEN INT1 / P3.3 9 25 P2.7 / A15 T0 / P3.4 10 24 P2.6 / A14 T1 / P3.5 11 23 P2.5 / A13 N.C.: Do not connect. 4 Jan. 2001 Ver 1.0 12 44 P1.4 WR / P3.6 13 P1.3 43 RD / P3.7 14 42 P1.2 XTAL2 15 41 P1.1 / T2EX XTAL1 16 40 P1.0 / T2 V SS 17 N.C.* 39 N.
Resumo do conteúdo contido na página número 9
GMS90X5XC Series HYUNDAI MicroElectronics Logic Symbol V V CC SS XTAL1 Port 0 XTAL2 8-bit Digital I/O Port 1 8-bit Digital I/O RESET Port 2 8-bit Digital I/O EA/V PP Port 3 ALE/PROG 8-bit Digital I/O PSEN Jan. 2001 Ver 1.0 5
Resumo do conteúdo contido na página número 10
HYUNDAI MicroElectronics GMS90X5XC Series PIN DEFINITIONS AND FUNCTIONS Pin Number Input/ Symbol Function PLCC- PDIP- MQFP- Output 44 40 44 P1.0-P1.7 2-9 1-8 40-44, I/O Port1 1-3 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 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 , in the DC characteristics). Pins
Resumo do conteúdo contido na página número 11
GMS90X5XC Series HYUNDAI MicroElectronics Pin Number Input/ Symbol Function PLCC- PDIP- MQFP- Output 44 40 44 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 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
Resumo do conteúdo contido na página número 12
HYUNDAI MicroElectronics GMS90X5XC Series Pin Number Input/ Symbol Function PLCC- PDIP- MQFP- Output 44 40 44 ALE / 33 30 27 O The Address Latch Enable / Program pulse PROG 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
Resumo do conteúdo contido na página número 13
GMS90X5XC Series HYUNDAI 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 RAM ROM/EPROM XTAL1 OSC & TIMING 128/256 8 4K/8K/16K × XTAL2 CPU RESET Timer 0 EA/V PP Port 0 Port 0 ALE/PROG 8-bit Digit. I/O Timer 1 PSEN Port 1 Port
Resumo do conteúdo contido na página número 14
HYUNDAI MicroElectronics GMS90X5XC Series CPU The GMS90X5XC series is efficient both as a controller and as an arithmetic processor. It has extensive facili- ties for binary and BCD arithmetic and excels in its bit-handling capabilities. Efficient use of program memory results from an instruction set consisting 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 (40MHz: 300ns). Special Function Register PSW MSB LSB
Resumo do conteúdo contido na página número 15
GMS90X5XC Series HYUNDAI MicroElectronics SPECIAL FUNCTION REGISTERS All registers, except the program counter and the four general purpose register banks, reside in the special func- tion register area. The 28 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 organize
Resumo do conteúdo contido na página número 16
HYUNDAI MicroElectronics GMS90X5XC Series Table 1. Special Function Registers in Numeric Order of their Addresses (cont’d) Contents after Contents after Address Register Address Register Reset Reset 3) 1) C0H reserved XX C8H T2CON 00H H 2) 4) 2) C1H reserved XXH C9H T2MOD XXXXXX00 B 2) 3) C2H reserved XXH CAH RC2L 00H 2) 3) C3H reserved XXH CBH RC2H 00H 2) 3) C4H reserved XXH CCH TL2 00H 2) 3) C5H reserved XXH CDH TH2 00H 2) 2) C6H reserved XXH CEH reserved XXH 2) 2) C7H reserved XXH CF
Resumo do conteúdo contido na página número 17
GMS90X5XC Series HYUNDAI MicroElectronics Table 2. Special Function Registers - Functional Blocks Contents Block Symbol Name Address after Reset 1) CPU ACC Accumulator E0H 00H 1) B B-Register F0H 00H DPH Data Pointer, High Byte 83H 00H DPL Data Pointer, Low Byte 82H 00H 1) PSW Program Status Word Register D0H 00H SP Stack Pointer 81H 07H 1) 2) Interrupt System IE Interrupt Enable Register A8H 0X000000B 1) 2) IP Interrupt Priority Register B8H XX000000B 1) Ports P0 Port 0 80H FFH 1) P1 Por
Resumo do conteúdo contido na página número 18
HYUNDAI MicroElectronics GMS90X5XC Series Table 3. Contents of SFRs, SFRs in Numeric Order Address Register Bit 7 6 54321 0 81H SP 82H DPL 83H DPH 87H PCON SMOD --- GF1 GF0 PDE IDLE 88H TCON TF1 TR1 TF0 TR0 IE1 IT1 IE0 IT0 89H TMOD GATE C/T M1 MT GATE C/T M1 M0 8AH TL0 8BH TL1 8CH TH0 8DH TH1 8EH AUXR0 - ----- - A0 8FH CKCON - ----- - X2 90H P1 98H SCON SM0 SM1 SM2 REN TB8 RB8 TI RI 99H SBUF A0H P2 A8H IE EA - ET2 ES ET1 EX1 ET0 EX0 B0H P3 B8H IP - - PT2 PS PT1 PX1 PT0 PX0 SFR bit and byte addre
Resumo do conteúdo contido na página número 19
GMS90X5XC Series HYUNDAI MicroElectronics Table 3. Contents of SFRs, SFRs in Numeric Order (cont’d) Address Register Bit 7 6 54321 0 C8H T2CON TF2EXF2RCLKTCLKEXEN2TR2C/T2 CP/RL2 † T2 C9H T2MOD ------ DCEN CAH RC2L CBH RC2H CCH TL2 CDH TH2 D0H PSW CY AC F0 RS1 RS0 OV F1 P E0H ACC F0H B † indicates resident in the GMS90X52C/54C, not in 90X51C. A0 8EH A0 : ALE Signal Disable bit 0 : Enable ALE Signal (Generated ALE Signal) 1 : Disable ALE Signal (Not Generated ALE Signal) X2 8FH X2 : CPU & Peripher
Resumo do conteúdo contido na página número 20
HYUNDAI MicroElectronics GMS90X5XC Series X2 MODE The GMS90X5XC core needs only 6 clock periods per machine cycle. This feature called ”X2” provides the following advantages: • Divide frequency crystals by 2 (cheaper crystals) while keeping same CPU power. • Save power consumption while keeping same CPU power (oscillator power saving). • Save power consumption by dividing dynamically operating frequency by 2 in operating and idle modes. • Increase CPU power by 2 while keeping same crystal frequ