APR. 1997
Rev. 2.0
4-BIT SINGLE CHIP MICROCOMPUTERS
GMS340 SERIES
USER`S MANUAL
•
•
•
•
•
•
GMS34004
GMS34012
GMS34112
GMS34120
GMS34140
GMS30000 EVA
INTRODUCTION
We hereby introduce the manual for CMOS 4-bit
microcomputer GMS340 Series.
This manual is prepared for the users who should
understand fully the functions and features of
GMS340 Series so that you can utilize this
product to its fullest capacity. A detailed explana-
tions of the specifications and applications regard-
ing the hardware is hereby provided.
The contents of this user`s manual are subject to
change for the reasons of later improvement of
the features.
The information, diagrams, and other data in this
user`s manual are correct and reliable; however,
Hyundai Electronics Industries Co., Ltd. is in no
way responsible for any violations of patents or
other rights of the third party generated by the
use of this manual
Table of Contents
Table of Contents
Chapter 1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Outline of Characteristics
.....................
Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Pin Assignment and Dimension . . . . . . . . . . . . . . . . . . . .
I/O circuit types and options . . . . . . . . . . . . . . . . . . . . . . .
Electrical Characteristics of GMS300 Series . . . . . . . . . .
1-1
1-1
1-2
1-3
1-7
1-10
Chapter 2
Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Block Description . . . . . . . . . . . . . . . . . . . . . . . . . . .. . .. . .
Program Memory (ROM). . . . . . . . . . . . . . . . . . . . . . . . .
ROM Address Register . . . . . . . . . . . . . . . . . . . . . . . . .
Data Memory (RAM) . . . . . . . . . . . . . . . . . . . . . . . . . . .
X-Register (X) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Y-Register (Y) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Accumulator (Acc) . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
State Counter (SC) . . . . . . . . . . . .. . . . . . . . . . . . . . . . .
Clock Generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Pulse Generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Initial Reset Circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Internal Power On Reset . . . . . . . . . . . . . . . . . . . . . . . .
Watch Dog Timer (WDT) . . . . . . . . . . . . . . . . . . . . . . . .
Stop Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Masked Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1
2-1
2-1
2-2
2-3
2-3
2-4
2-4
2-5
2-6
2-7
2-8
2-8
2-8
2-10
2-10
Chapter 3
Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Instruction format . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Instruction Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Details of Instruction System . . . . . . . . . . . . . . . . . . . .
3-1
3-1
3-2
3-5
Detailed Description . . . . . . . . . . . . . . . . . . . . . . .
3-6
Table of Contents
Chapter 4
Evaluation Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Product Specification . . . . . . . . . . . . . . . . . . . . . . . . . . .
Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Optional Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Caution of Operation . . . . . . . . . . . . . . . . . . . . . .. . . . .
4-1
4-1
4-1
4-2
4-3
4-6
Chapter 5
Software
......................................
5-1
5-1
5-1
5-2
5-2
5-15
5-18
5-48
5-49
Configuration of Assembler . . . . . . . . . . . . . . . . . . . . . .
Booting up Assembler . . . . . . . . . . . . . . . . . . . . . . . . .
Configuration of Simulator . . . . . . . . . . . . . . . . . . . . . . .
Booting up Simulator . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Simulator commands . . . . . . . . . . . . . . . . . . . . . . . . . . .
Description of commands . . . . . . . . . . . . . . . . . . . . . . . .
File types used in the simulator . . . . . . . . . . . . . . . . . . .
Error message and troubleshooting . . . . . . . . . . . . . . . .
Appendix
Mask option list
INTRODUCTION
ARCHITECTURE
INSTRUCTION
EVALUATION BOARD
SOFTWARE
APPENDIX
1
2
3
4
5
6