Advertisement

Quick Links

GMS81508A
GMS81516A
USER'S MANUAL
Revision History
Rev 2.2 (Dec. 1998)
Add the package dimension for 64LQFP on page 3-1, 4-1.
Rev 2.1 (Nov. 1998)
Operating Temperature, -10~75°C is extended to -20~85°C.
Add the unused port guidance on page 55.
Correct errata for opcode of "EOR [dp+X], EOR [dp]+Y, EOR {X}" in "Instruction Set".
Add the OTP device programming guidance, recommend using "Intelligent Mode".
Add the chapter for OTP programming manual as an appendix.
Rev 2.0 (Sep. 1997)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the GMS81508A and is the answer not in the manual?

Questions and answers

Summary of Contents for Hynix Semiconductor GMS81508A

  • Page 1 GMS81508A GMS81516A USER’S MANUAL Revision History Rev 2.2 (Dec. 1998) Add the package dimension for 64LQFP on page 3-1, 4-1. Rev 2.1 (Nov. 1998) Operating Temperature, -10~75°C is extended to -20~85°C. Add the unused port guidance on page 55. Correct errata for opcode of “EOR [dp+X], EOR [dp]+Y, EOR {X}” in “Instruction Set”.
  • Page 2: Table Of Contents

    - CONTENTS - 1. OVERVIEW............................1 1.1. FEATURES ............................1 1.2. BLOCK DIAGRAM..........................2 1.3. PIN ASSIGNMENT ..........................3 1.4. PACKAGE DIMENSION ........................4 1.5. PIN DESCRIPTION..........................5 2. FUNCTIONS............................7 2.1. REGISTERS ............................7 2.1.1. A - Register............................8 2.1.2. X- Register.............................8 2.1.3. Y- Register .............................8 2.1.4. Stack Pointer ..........................8 2.1.5.
  • Page 3 2.12.4. Interrupt Sequence........................40 2.12.5. Software Interrupt ........................41 2.12.6. Multiple Interrupt ........................42 2.13. STANDBY FUNCTION ........................44 2.13.1. STOP Mode ..........................45 2.13.2. STOP Mode Release ........................45 2.14. RESET FUNCTION ......................... 47 3. I/O PORTS............................48 3.1. R0 PORT............................48 3.2.
  • Page 4: Overview

    GMS81508/16 1. OVERVIEW GMS81508/16 is a single chip microcomputer designed CMOS technology. The use of CMOS process enables extremely low power consumption. This device using the G8MC Core includes several peripheral functions such as Timer, A/D Converter, Programmable Buzzer Driver, Serial I/O, Pulse Width Modulation Function, etc. ROM,RAM,I/O are placed on the same memory map in addition to simple instruction set.
  • Page 5: Block Diagram

    HYUNDAI MicroElectronics 1.2. BLOCK DIAGRAM AVref AVss R60~R67 (AN0~AN7) G8MC CONVERTER PORT CORE R57/PWM1 R56/PWM0 PORT (448 BYTE) BUZZER R55/BUZ PORT W.D.T R54/WDTO PORT R53/Srdy (8/16K BYTE) R52/Sclk S.I.C R51/Sout R50/Sin PORT R47/T3 O R46/T1 O TIMER R45/EC2 R44/EC0 PORT R43/INT3 R42/INT2 INTERRUPT...
  • Page 6: Pin Assignment

    GMS81508/16 1.3. PIN ASSIGNMENT MP MODE R30/ RD R31/ Wt AVss R32/ R/W AVref R33/ C R67/AN7 R34/ SYNC R66/AN6 R35/ BRK R65/AN5 R36/ BRQ R64/AN4 R37/ HALT R63/AN3 R00/ D0 R62/AN2 R01/ D1 R61/AN1 R02/ D2 R60/AN0 R03/ D3 R57/PWM1 R04/ D4 R56/PWM0...
  • Page 7 HYUNDAI MicroElectronics 64LQFP GMS81508/16 XOUT AVSS RESET AVREF R40/INT0 R67/AN7 R41/INT1 R66/AN6 R42/INT2 R65/AN5 R43/INT3 R64/AN4...
  • Page 8: Package Dimension

    HYUNDAI MicroElectronics 1.4 PACKAGE DIMENSION 64SDIP UNIT: INCH 2.280 2.260 0.750 BSC 0.680 0.660 0.205 max. 0.012 0.050 0.070 BSC 0.022 0.008 0-15° 0.030 0.016 64QFP 24.15 23.65 20.10 UNIT: MM 19.90 0-7° SEE DETAIL "A" 1.03 3.18 max. 0.73 1.00 BSC 0.50 1.95...
  • Page 9 HYUNDAI MicroElectronics 64LQFP 12.00 BSC UNIT: MM 10.00 BSC 0-7° SEE DETAIL "A" 0.75 0.45 1.60 max. 1.00 0.50 BSC 0.38 0.22 DETAIL "A"...
  • Page 10: Pin Description

    GMS81508/16 1.5. PIN DESCRIPTION Classification Symbol Descriptions Power Power Supply Input Pin(4.5~5.5V) Ground(0V) Controls Microprocess Mode of the Chip At "H" input : Single Chip Mode At "L" input : Microprocess Mode System Control RESET In the state of "L" level, system enter to the reset state.
  • Page 11 HYUNDAI MicroElectronics Classification Symbol Description R0 Port ( Can be determined I/O by R0DD ) In MP mode, This port functions as 8-bit data bus for the CPU. (D0~D7) R1 Port ( Can be determined I/O by R1DD ) In MP mode, This functions as 8-bit lower address output pins.
  • Page 12: Functions

    GMS81508/16 2. FUNCTIONS 2.1. REGISTERS 6 registers are built-in the CPU of G8MC. Accumulator(A), Index register X, Y, Stack Pointer (SP) and Program Status Word(PSW) consists of 8-bit registers. Program Counter(PC) consists of 16- bit registers. The contents of these registers are undefined after RESET. Program Counter A - Register ( YA 16bit Accumulator )
  • Page 13: A - Register

    HYUNDAI MicroElectronics 2.1.1. A - Register The accumulator is the 8-bit general purpose register. This is used register for data operation, data transfer, temporary saves and conditional judgment. Accumulator can be used as a 16-bit register with Y register and has a lower 8-bit data. In case of multiplication instruction(MUL), it works as a multiplier.
  • Page 14 GMS81508/16 Stack Address ( 0100 01FF Hardware fixed The bellows shows data store and restore sequence to/from stack area. Interrupt M (sp) ( PCH ) M (sp) ( PCL ) M (sp) ( PSW ) RETI ( PCL ) M (sp) ( PCH) M (sp) ( PSW )
  • Page 15: Program Counter

    HYUNDAI MicroElectronics 2.1.5. Program Counter The program counter(PC) is a 16-bit counter which consists of 8-bit register PCH and PCL. The addressing space is 64K bytes. This counter indicates the address of the next instruction to be executed. In reset state, the program counter (PC) has reset routine address in address FFFFH and FFFEH . 2.1.6.
  • Page 16 GMS81508/16 Break Flag ( B ) This flag is set by BRK (S/W interrupt) instruction to distinguish BRK and TCALL instruction having the same vector address. Direct Page Flag ( G ) This flag assign direct page (0-page, 1-page) for direct addressing mode. When G-flag is "0", the direct addressing space is in 0-page(0000H~00FFH).
  • Page 17: Memory Space

    HYUNDAI MicroElectronics 2.2. MEMORY SPACE All RAM ,ROM,I/O, Peripheral Register are placed in the same memory area. Therefore, same instructions enable both data transfer and operation without the need to distinguish memory and I/O. The program counter of GMS81508/16 consists of 16-bit and memory addressing space is 64K byte.
  • Page 18 GMS81508/16 Absolute Address !0000H (192 byte) 0-Page !00C0H Peripheral Registers Direct Page(dp) !0100H RAM(STACK) 1-Page (256 byte) !0200H Not Used Area !C000H Program ROM !E000H !FF00H PCALL Area U-Page !FFC0H TCALL Vector Area !FFE0H Interrupt Vector Area VECTOR TABLE TCALL INTERRUPT Address Vector...
  • Page 19: Peripheral Register List

    HYUNDAI MicroElectronics 2.2.4. Peripheral Register List RESET VALUE SYMBOL Address Register Name 7 6 5 4 3 2 1 0 00C0 R0 PORT DATA REGISTER Undefined 00C1 R0 PORT I/O DIRECTION REGISTER R0DD 0 0 0 0 0 0 0 0 00C2 R1 PORT DATA REGISTER Undefined...
  • Page 20 GMS81508/16 RESET VALUE Address Register Name SYMBOL 7 6 5 4 3 2 1 0 00EB SERIAL I/O REGISTER SIOR Undefined 00EC BUZZER DRIVER REGISTER Undefined 00F0 PWM0 DATA REGISTER Undefined PWMR0 00F1 PWM1 DATA REGISTER PWMR1 Undefined 00F2 PWM CONTROL REGISTER PWMCR 00F3 INTERRUPT MODE REGISTER...
  • Page 21: Clock Generation Circuit

    HYUNDAI MicroElectronics 2.3. CLOCK GENERATION CIRCUIT The clock generation circuit of GMS81508/16 consists of oscillation circuit, prescaler, Basic Interval Timer. The source clock of peripherals is provided by 11-bit prescaler. Clock Pulse Generator Circuit Internal System Clock IFBIT Prescaler ENPCK B.I.T.(8) W.D.T.(6) WDTCL...
  • Page 22: Prescaler

    GMS81508/16 2.3.2. Prescaler The prescaler consists of 11-bit binary counter, and input clock is supplied by oscillation circuit. The frequency divided by prescaler is used as a source clock for peripherals. PS10 PS11 ENPCK B.I.T. PS10 PS11 Internal Data Bus Peripherals Frequency-Divided Outputs of Prescaler PS10 PS11...
  • Page 23: Basic Interval Timer

    HYUNDAI MicroElectronics 2.4. BASIC INTERVAL TIMER The Basic Interval Timer(B.I.T.) has 8-bit binary counter. The operations is shown below. . Generates reference time interval interrupt request as a timer. . The counting value of B.I.T. can be read. ( Note; The writing at same address overwrites the CKCTLR.) .
  • Page 24: Watch Dog Timer

    GMS81508/16 BASIC INTERVAL TIMER DATA REGISTER BITR <00D3 > B.I.T data 2.5. WATCH DOG TIMER The Watch Dog Timer is a means of recovery from a system problem. In this Device, the Watch Dog Timer consists of 6-bit binary counter, 6-bit comparator and watch dog timer register(WDTR).
  • Page 25: The Output Of Wdt Signal

    HYUNDAI MicroElectronics The interval of WDT interrupt is decided by the interrupt interval of Basic Interval Timer and the contents of WDTR. The interval of WDT = The contents of WDTR The interval of B.I.T. Caution) Do not use the contents of WDTR = "0" The relationship between the input clock of B.I.T and the output of W.D.T.
  • Page 26: Timer

    GMS81508/16 2.6. TIMER The GMS81508/16 has four multi-functional 8-bit binary timers(Timer0~Timer3). Timer0 (or Timer2) is can be used as a 16-bit timer/event counter with Timer1(or Timer3). The Timer0-1 and Timer2-3 have same functions and structures. So, We will explains about Timer0 and Timer1 only.
  • Page 27 HYUNDAI MicroElectronics TIMER MODE REGISTER 0,2(TM0,TM2) <00E2 > CAP0 T1ST T1SL1 T1SL0 T0ST T0CN T0SL1 T0SL0 Input Capture Selection T0 Input Clock Selection 0 : Timer/Counter 00 : EC0 1 : Input Capture 01 : PS2 ( 500 10 : PS4 ( 11 : PS6 ( T1 Start/Stop control 0 : Cout Stop...
  • Page 28: Control Of Timer

    GMS81508/16 2.6.1. Control of Timer T0 ( T1 ) consists of 8-bit Binary Up-Counter. When the counting value of Timer0 , Timer1 and Timer0-1(16bit) become equal to the contents of Timer Data Register(TDR0,TDR1,TDR0-1) value, the counter is cleared to "00H" and restarts count-up operation. At this time, Interrupt request (IFT0 or IFT1) is generated.
  • Page 29: Interval Timer

    HYUNDAI MicroElectronics By read Timer Data Register(TDR0~3),The counting value of timer can be read at any time. 2.6.2. Interval Timer The interrupt cycle is determined by the source clock of timer and the contents of TDR. Interrupt cycle = source clock the contents of TDR In order to write data to TDR, you have to stop timer.
  • Page 30 GMS81508/16 Rising Edge Falling Edge Period “H”Width “L”Width R40/INT0 R42/INT2 Both Edge Timer Operation the counting value of timer is latched timer is cleared to 00H timer restart count-up PORT R4 MODE REGISTER PMR4 EC2S EC0S INT3S INT2S INT1S INT0S <00D0 >...
  • Page 31: External Interrupt

    HYUNDAI MicroElectronics 2.7. EXTERNAL INTERRUPT An interrupt request is generated when a level-change from "H" to "L" or "L" to "H" of INT0,INT1,INT2,INT3 pin is detected. The edge of external interrupt is selected by interrupt edge selection register(IEDS) and ports(R40,R41,R42,R43) corresponding to INT0,INT1,INT4,INT3 are determined as a input port for external interrupt by bit0~3 of port4 mode register(PMR4).
  • Page 32: A/D Converter

    GMS81508/16 2.8. A/D CONVERTER A/D Converter has an 8-bit resolution, and input is possible up to 8 channel. A/D Converter consists of Analog Input Multiplexer, A/D convert Mode Register, Resistance Ladder, Sample and Holder, Successive Approximation Circuit and A/D Conversion Data Register. Ladder AVref Resistor...
  • Page 33 HYUNDAI MicroElectronics A/D CONVERTER MODE REGISTER(ADCM) ADCM ADCM ADS2 ADS2 ADS1 ADS1 ADS0 ADS0 ADST ADST ADSF ADSF ADEN ADEN <00E8 <00E8 > > A/D Conversion Status bit A/D Conversion Status bit A/D Converter Enable bit A/D Converter Enable bit 0 : during A/D Conversion 0 : during A/D Conversion 0 :Disable A/D Converter...
  • Page 34: Serial I/O

    GMS81508/16 2.9. SERIAL I/O The serial I/O is 8-bit clock synchronous type and consists of serial I/O register, serial I/O mode register, clock selection circuit octal counter and control circuit. Internal Data BUS Srdy SCK1 SCK0 SIOST SOSF SIOM Srdy Control Octal Counter Circuit...
  • Page 35 HYUNDAI MicroElectronics Serial I/O Mode Register This register controls serial I/O function. According to SCK1 and SCK0, the internal clock or external clock can be selected. SIOM Srdy SCK1 SCK0 SIOST SIOSF <00EA > Serial Transmission Status Flag 0 : during transmission R53/Srdy Selection 1 : finished 0 : R53...
  • Page 36: Data Transmission/Receiving Timing

    GMS81508/16 2.9.1. Data Transmission/Receiving Timing The serial transmission is started by setting SIOST(bit1 SIOM) to ” 1 ” . After one cycle of SCK, SIOST is cleared automatically to “ 0 ” . The serial output data from 8-bit shift register is output at falling edge of Sclk.
  • Page 37: The Method Of Serial I/O

    HYUNDAI MicroElectronics 2.9.3. The method of Serial I/O Select transmission/receiving mode <Notice> When external clock is used, the frequency should be less than 1MHz and recommended duty is 50%. In case of sending mode, write data to be send to SIOR. Set SIOST to “...
  • Page 38: Pwm

    GMS81508/16 2.10. PWM PWM(Pulse Width Modulation) has a 8-bit resolution and the PS8,PS9,PS10,PS11 of the prescaler can be selected as input clock PWM. Internal Data Bus PWMR0 Overflow Comparator Polarity PWM0 Counter PS10 PS11 P1CK1 P1CK0 P0CK1 P0CK0 POL1 POL0 PWMCR Counter PS10...
  • Page 39 HYUNDAI MicroElectronics (a) Active Low (b) Active High period period pulse width pulse width Counter Load Value + 1 100[%] Duty Cycle = PWM CONTROL REGISTER PWMCR P0CK P0CK PICK1 PICK0 POL1 POL0 <00F2 > PWM0 Output Polarity 0 : Active Low PWM1 Clock Selection 1 : Active High 00 : PS8...
  • Page 40: Buzzer Driver

    GMS81508/16 2.11. BUZZER DRIVER Buzzer driver consist of 6 bit binary counter, Buzzer Register(BUR), and selector of clock. The wide range frequency(500Hz~250KHz) can be generated using programmable counter. PORT R55 is assigned for output port of Buzzer Driver by setting bit5 of PMR5($00D1H) to "1". Internal Data Bus WtBUR BUCK1 BUCK0 BU5...
  • Page 41: Buzzer Driver Operation

    HYUNDAI MicroElectronics 2.11.1. Buzzer Driver Operation The bit0-5 of Buzzer Register (BUR) determines output frequency for buzzer driving. The frequency is calculated as shown bellows. N = BUR data freq. = 1/(source clock The bit6 and bit7 of Buzzer register (BUR) selects the source clock of the buzzer counter among PS4 (2us), PS5 (4us), PS6 (8us) and PS7 (16us).
  • Page 42: Interrupts

    GMS81508/16 2.12. INTERRUPTS The interrupts are usually used when the processing routine has the higher priority than on-going program and a routine muse be executed at specific interval. 2.12.1. Interrupt Circuit Configuration and Kinds GMS81508/16 Interrupt circuits consists of Interrupt Enable Register (IENH,IENL), Interrupt Request Register (IRQH,IRQL), priority circuit and selecting circuit.
  • Page 43: Interrupt Control

    HYUNDAI MicroElectronics Interrupt Source The interrupts sources are external interrupt source(INT0, INT1,INT2,INT3), peripheral function source (T0,T1,T2,T3,B.I.T.,W.D.T.,SIO,A/DC) and software interrupt source(BRK). After reset input(RESET), the program is executed from the address in reset vector table like general interrupts. Type Mask Priority Interrupt Request Source Vector Vector...
  • Page 44: Interrupt Priority

    GMS81508/16 IENH INT0E INT1E INT2E INT3E <00F6 > IENL WDTE BITE <00F4 > Interrupt Masking Flag 0 : Interrupt Disable 1 : Interrupt Enable Interrupt Request Flag Register ( IRQH, IRQL) Whenever interrupt request is generated, the interrupt request flag is set. The request flag maintains '1"...
  • Page 45: Interrupt Sequence

    HYUNDAI MicroElectronics 2.12.4. Interrupt Sequence When interrupt is accepted, the on-going process is stopped and the interrupt service routine is executed. After the interrupt service routine is completed it is necessary to restore everything to the state before the interrupt occurred. As soon as an interrupt is accepted, the contents of the program counter and the program status word are saved in the stack area.
  • Page 46: Software Interrupt

    GMS81508/16 System Clock Instruction Fetch Address Bus sp-1 sp-2 new pc Data Bus not Used Opcode Internal Read Internal Write Interrupt Process Step Interrupt Service Routine V.L, V.H is Vector Address, ADL, ADH is start Address of Interrupt Service Routine as Vector Contents Interrupt Process Step Timing 2.12.5.
  • Page 47: Multiple Interrupt

    HYUNDAI MicroElectronics 2.12.6. Multiple Interrupt When an interrupt is accepted, and program flow goes to the interrupt service routine. The interrupt master enable flag(I-flag) is automatically cleared and other interrupts are inhibited. When interrupt service is completed by RETI instruction, I-flag is set automatically. If other interrupts are generated during interrupt service, The interrupt having higher priority is accepted when the previous interrupt service routine is completed.
  • Page 48 GMS81508/16 When multiple interrupt is accepted, it is possible to change Interrupt Accept Mode. In case of multiple interrupt at hardware priority accept mode(Mode0) Main Program ( Mode 0 ) 1’st INT. Routine ( Mode 0 ) 2’nd INT. Routine ( Mode 0 ) 3’rd INT.
  • Page 49: Standby Function

    HYUNDAI MicroElectronics 2.13. STANDBY FUNCTION To save the consuming power of device, GMS81508/16 has STOP Mode. In this mode, the execution of program is stopped. Stop Mode entered by STOP instruction. OSC. Clock Pulse GEN. CPU Clock Circuit halt Prescaler Basic Interval Timer IFBIT STOP...
  • Page 50: Stop Mode

    GMS81508/16 2.13.1. STOP Mode STOP Mode can be entered by STOP instruction during program execution. In STOP mode, oscillator is stopped to make all clocks stop, which leads to the mode requiring much less power consumption. All register and RAM data are preserved. Caution) NOP instruction have to be written more than 2 to next lines of STOP instruction.
  • Page 51 HYUNDAI MicroElectronics When release the STOP Mode, to secure oscillation stabilization time, we use Basic Interval Timer. So, before execution STOP instruction, we must select suitable B.I.T. clock for oscillation stabilization time. Otherwise, It is possible to release by only RESET input. Because STOP mode is released by interrupt, even if both of interrupt enable bit(IE) and interrupt request flag is "1", STOP mode can not be executed.
  • Page 52: Reset Function

    GMS81508/16 2.14. RESET FUNCTION To reset the device, maintain the RESET="L" at least 8 machine cycle after power supplying and oscillation stabilization. RESET terminal is organized as schmitt input. If initial value is undefined, it is needed initialize by a S/W. System Clock RESET Instruction Fetch...
  • Page 53: I/O Ports

    HYUNDAI MicroElectronics 3. I/O PORTS There are 7-ports(R0~R6) in this device. This ports are double-functional ports and the function can be selected by program. The direction of ports is determined by Port Direction Register.(1=output, 0=input) The data that is written on the programmed output pin is stored in the port data register and is transferred to the output pin.
  • Page 54: R1 Port

    GMS81508/16 Pin Function According to Operation Modes Single Chip Mode Microprocessor Mode R00/D0 R01/D1 R02/D2 Programmable I/O Port Data I/O Port from/to External Memory R03/D3 for CPU. R04/D4 R05/D5 R06/D6 R07/D7 3.2. R1 PORT R1 Port is composed of 8-bit programmable I/O pin. Register Name Symbol Address...
  • Page 55: R2 Port

    HYUNDAI MicroElectronics Single Chip Mode Microprocessor Mode R10/A0 R11/A1 R12/A2 Programmable I/O Port low 8bit address of External Memory R13/A3 for CPU. R14/A4 R15/A5 R16/A6 R17/A7 3.3. R2 PORT R2 Port is composed of 8-bit programmable I/O pin. Register Name Symbol Address Initial Value...
  • Page 56: R3 Port

    GMS81508/16 Pin Function According to Operation Modes Single Chip Mode Microprocessor Mode R20/A8 R21/A9 R22/A10 Programmable I/O Port upper 8bit address of External Memory R23/A11 for CPU. R24/A12 R25/A13 R26/A14 R27/A15 3.4. R3 PORT R3 Port is composed of 8-bit programmable I/O pin. Register Name Symbol Address...
  • Page 57: R4 Port

    HYUNDAI MicroElectronics Pin Function According to Operation Modes Single Chip Mode Microprocessor Mode Rd : external memory read strobe Wt : external memory write strobe Programmable I/O Port R/W :Read/Write cycle output pin of CPU C : timing signal output pin SYNC : op code fetch output pin of CPU BRK : bus acknowledge output pin of BRQ : bus request input pin of CUP...
  • Page 58: R5 Port

    GMS81508/16 PORT R4 MODE REGISTER PMR4 EC2S INT3S INT2S EC0S INT1S INT0S <00D0 > R40 / INT0 Selection R47 / T3 Selection 0 : R40 ( Input / Output ) 0 : R47 ( Input / Output ) 1 : INT0 ( Input ) 1 : T3 ( Output ) R41 / INT1 Selection R46 / T1 Selection...
  • Page 59: R6 Port

    HYUNDAI MicroElectronics R5 PORT I/O DIRECTION REGISTER R5DD R5DD4 R5DD3 R5DD2 R5DD1 R5DD0 R5DD7 R5DD6 R5DD5 <00CB > Determines I/O of R5 port 0 : Input 1 : Output R5 PORT DATA REGISTER <00CA > Port R5 Output Data PORT R5 MODE REGISTER PMR5 WDTON <00D1...
  • Page 60 GMS81508/16 R6 PORT I/O DIRECTION REGISTER R6DD R6DD3 R6DD2 R6DD1 R6DD0 R6DD7 R6DD6 R6DD5 R6DD4 <00CD > Determines I/O of R6 port 0 : Input 1 : Output R6 PORT DATA REGISTER <00CC > Port R6 output data On the initial RESET, R60 can’t be used digital input port, because this port is selected as an analog input port by ADCM register.
  • Page 61: Terminal Types

    HYUNDAI MicroElectronics 3.8. TERMINAL TYPES TERMINAL TYPE Xout Xout STOP RESET Data Bus Data REG. Data Bus R00 ~ R07 Direction REG. Data Bus Data Bus Data Bus...
  • Page 62 GMS81508/16 Address Bus Data REG. Data Bus R10 ~ R27 R20 ~ R27 Direction REG. Data Bus Data Bus From R30 ... Rd From R31 ... Wt From R32 ... R/W From R33 ... C From R34 ... SYNC From R35 ... BAK Data REG.
  • Page 63 HYUNDAI MicroElectronics Selection Selection Data REG. Data REG. Data Bus Data Bus R40/INT0 R41/INT1 Data Bus Data Bus Direction REG. Direction REG. R42/INT2 R43/INT3 Data Bus Data Bus R44/EC0 To R40 To R40 INT0 INT0 R45/EC2 To R41 To R41 INT1 INT1 R50/Sin...
  • Page 64 GMS81508/16 Selection Srdy Srdy o Data REG. Data Bus R53/Srdy Direction REG. Data Bus Data Bus Srdy in R60/AN0 Data Bus R61/AN1 R62/AN2 R63/AN3 To A/D Converter Data REG. Data Bus R64/AN4 R65/AN5 Direction REG. Data Bus R66/AN6 R67/AN7 Data Bus To A/D Converter...
  • Page 65: Electrical Characteristics

    HYUNDAI MicroElectronics 4. ELECTRICAL CHARACTERISTICS 4.1. ABOULUTE MAXIMUM RATINGS Parameter Symbol Unit Ratings Supply Voltage -0.3 ~ 7.0 Input Voltage -0.3 ~ Vdd+0.3 °C Storage Temperature Tstg -40 ~ 125 4.2. RECOMMENDED OPERATING CONDITIONS Parameter Symbol Unit Specifications Min. Typ. Max.
  • Page 66: Dc Characteristics

    GMS81508/16 4.4. DC CHARACTERISTICS ( Vdd =5.0V±10%,Vss = 0 , Ta = -20 ,f (Xin) = 8 Parameter Symbol Test Condition Unit Specifications Min. Typ. Max. RESET,,R4,R5,R6 0.8Vdd "H" Input voltage R0,R1,R2,R3 0.7Vdd 0.9Vdd RESET,R4,R5,R6 0.12Vdd "L" Input voltage R0,R1,R2,R3 0.3Vdd 0.1Vdd "H"...
  • Page 67: Ac Characteristics

    HYUNDAI MicroElectronics 4.5. AC CHARACTERISTICS 4.5.1. Input Conditions ( Vdd = 5.0V±10%, Vss = 0 , Ta = -20 ,f (Xin) = 8 Parameter Symbol Unit SPECIFICATION MIN. TYP. MAX. Operating Frequency System Clock tsys Oscillation Stabilization Time Xin, Xout External Clock Pulse Width tcpw External Clock Transition Time...
  • Page 68: Serial Transfer

    GMS81508/16 4.5.2. Serial Transfer ( Vdd = 5.0V ± 10%, Vss = 0 , Ta = -20 ,f (Xin) = 8 Parametet Symbol Unit SPECIFICATION MIN. TYP. MAX. Serial Input Clock Pulse Sclk tscyc 2tsys+200 Serial Input Clock Pulse Width Sclk tsckw tsys+70...
  • Page 69: Microprocessor Mode I/O Timing

    HYUNDAI MicroElectronics 4.5.3. Microprocessor Mode I/O Timing ( Vdd = 5.0V ± 10%, Vss = 0 , Ta = -20 ,f (Xin) = 8 Parameter Symbol Unit SPECIFICATION MIN. TYP. MAX. Control Clock Output Width Address Output Delay Time A0 ~ A15 tdCA Data Output Delay Time D0 ~ D7...
  • Page 70: Bus Holding Timing

    GMS81508/16 4.5.4. Bus Holding Timing ( Vdd = 5.0V ± 10%, Vss = 0 , Ta = -20 ,f (Xin) = 8 Parameter Symbol Unit SPECIFICATION MIN. TYP. MAX. BRQ Setup Time tSUB tsys BAK Delay Time tdBA tsys BAK Release Delay Time tdRBA tsys Bus(Address,Data) Control Release...
  • Page 71: Instruction Set

    HYUNDAI MicroElectronics 5. INSTRUCTION SET 1. ARITHMETIC/ LOGIC OPERATION FLAG BYTE CYCLE MNEMONIC OPERATION NVGBHIZC CODE ADC #imm Add with carry. ADC dp ( A ) ( M ) ADC dp + X ADC !abs NV--H-ZC ADC !abs + Y ADC [ dp + X ] ADC [ dp ] + Y ADC { X }...
  • Page 72 GMS81508/16 FLAG BYTE CYCLE MNEMONIC OPERATION NVGBHIZC CODE DEC A Deccrement N-----Z- DEC dp N-----Z- ( M ) DEC dp + X N-----Z- DEC !abs N-----Z- DEC X N-----Z- DEC Y N-----Z- Divide : YA / X Q: A, R: Y NV--H-Z- EOR #imm Exclusive OR...
  • Page 73 FLAG BYTE CYCLE MNEMONIC OPERATION NVGBHIZC CODE SBC #imm Substract with carry SBC dp ( A ) ( M ) ( C ) SBC dp + X SBC !abs NV--HZC SBC !abs + Y SBC [ dp + X ] SBC [ dp ] + Y SBC { X } Test memory contents for negative or zero...
  • Page 74 GMS81508/16 NVGBHIZC MNEMONIC OPERATION CODE STX dp Store X-register contents in memoy STX dp + Y ( M ) -------- STX !abs STY dp Store Y-register contents in memoy STY dp + X ( M ) -------- STY !abs Transfer accumulator contents to X-register : X N-----Z- Transfer accumulator contents to Y-register : Y N-----Z-...
  • Page 75 HYUNDAI MicroElectronics 4. BIT MANIPULATION BYTE CYCLE FLAG MNEMONIC OPERATION NVGBHIZC CODE AND1 M.bit -------C Bit AND C-flag ( C ) ( M .bit ) AND1B M.bit -------C Bit AND C-flag and NOT : C ( C ) ( M .bit ) BIT dp Bit test A with memory : MM----Z-...
  • Page 76 GMS81508/16 BYTE CYCLE FLAG MNEMONIC OPERATION NVGBHIZC CODE BMI rel Branch if minus -------- if ( N ) 1 , then pc ( pc ) BNE rel Branch if not equal -------- if ( Z ) 0 , then BPL rel Branch if minus -------- if ( N )
  • Page 77 HYUNDAI MicroElectronics 6. CONTROL OPERATION & etc. BYTE CYCLE FLAG MNEMONIC OPERATION NVGBHIZC CODE ---1-0-- Software interrupt : B ”1”, M( sp) ( pc ), sp sp - 1, M( s ) ( pc ), sp sp - 1, M( sp) ( PSW ), sp -1, pc ( 0FFDE...
  • Page 78 GMS81508/16 HYUNDAI MicroElectronics With these socket adapters, the GMS81516AT can 6 . G M S 8 1 5 1 6 A T ( O T P ) P R O G R A M M I N G easy be programming and verifying using Intel The GMS81516AT is one-time PROM (OTP) micro- 27C256 EPROM mode on general-purpose PROM controller with 16K bytes electrically programmable...
  • Page 79 G M S 8 1 5 1 6 A T P R O G R A M M I N G M A N U A L...
  • Page 80 HYUNDAI MicroElectronics GMS81516AT EPROM PROGRAMMING D E V I C E O V E R V I E W The GMS81516AT is a high-performance CMOS 8-bit microcontroller with 16K bytes of EPROM. The device is one of GMS800 family. The HME GMS81516AT is a powerful microcontroller which provides a highly flexible and cost effective solution to many embedded control applications.
  • Page 81 GMS81516AT EPROM PROGRAMMING HYUNDAI MicroElectronics 6 4 Q F P 6 4 L Q F P...
  • Page 82 HYUNDAI MicroElectronics GMS81516AT EPROM PROGRAMMING 64SDIP Package for GMS81516AT P i n N o . M C U M o d e O T P M o d e Pin No. M C U M o d e O T P M o d e A V S S AVREF R67/AN7...
  • Page 83 GMS81516AT EPROM PROGRAMMING HYUNDAI MicroElectronics 64QFP Package for GMS81516AT P i n N o . M C U M o d e O T P M o d e Pin No. M C U M o d e O T P M o d e R65/AN5 R64/AN4 R63/AN3...
  • Page 84 HYUNDAI MicroElectronics GMS81516AT EPROM PROGRAMMING 64LQFP Package for GMS81516AT P i n N o . M C U M o d e O T P M o d e Pin No. M C U M o d e O T P M o d e R63/AN3 R62/AN2 R61/AN1...
  • Page 85 GMS81516AT EPROM PROGRAMMING HYUNDAI MicroElectronics P I N F U N C T I O N ( O T P M o d e ) (Program Voltage) is the input for the program voltage for programming the EPROM. CE ( Chip Enable) CE is the input for programming and verifying internal EPROM.
  • Page 86 HYUNDAI MicroElectronics GMS81516AT EPROM PROGRAMMING Programming Flow x x x x x x x x . O T P G M S 8 1 5 1 6 A T Address Address 4000 C000 Program Verify Down File Type: Reading P r o g r a m Loading area Universal...
  • Page 87 GMS81516AT EPROM PROGRAMMING HYUNDAI MicroElectronics D E V I C E O P E R A T I O N M O D E ° ± ° = 25 M o d e A 0 ~ A 1 5 V P P V D D O 0 ~ O 7 Read...
  • Page 88 HYUNDAI MicroElectronics GMS81516AT EPROM PROGRAMMING SWITCHING WAVEFORMS W A V E F O R M I N P U T S O U T P U T S W ill be steady Must be steady W ill be changing May change from H to L from H to L W ill be changing...
  • Page 89 GMS81516AT EPROM PROGRAMMING HYUNDAI MicroElectronics PROGRAMMING ALGORITHM WAVEFORMS Program Program Verify V IH Addresses Address Stable V IL V IH High-Z Data Data In Stable V IL Data out Valid D F P 12.5V V DD V P S 6.0V 5.0V V D S V IH...
  • Page 90 HYUNDAI MicroElectronics GMS81516AT EPROM PROGRAMMING A C R E A D I N G C H A R A C T E R I S T I C S ° ± ° =0 V, T = 25 S y m b o l I t e m M i n T y p...
  • Page 91 GMS81516AT EPROM PROGRAMMING HYUNDAI MicroElectronics Intelligent Programming Algorithm START ADDRESS= FIRST LOCATION = 6.0V = 12.5V X = 0 PROGRAM ONE 1 ms PULSE INCREMENT X X = 25 ? FAIL VERIFY BYTE FAIL VERIFY ONE BYTE PASS PASS PROGRAM ONE PULSE OF 3X msec DURATION LAST INCREMENT...

This manual is also suitable for:

Gms81516aUpa102g

Table of Contents