English
Language : 

GMS81004 Datasheet, PDF (98/101 Pages) Hynix Semiconductor – 8-BIT SINGLE CHIP MICROCOMPUTERS
Appendix B. PROGRAMMER`S GUIDE
Mask Option List Example Refer to Circuit B-1
GMS810 MASK OPTION LIST
Code Name : GMS81016 - UAxxx
HYUNDAI ELCTRONICS Co., Ltd.
MCU Application Team.
1. Device & Package
GMS81004
GMS81008
GMS81016
20PIN : SOP
24PIN : SOP
28PIN : SOP
44PIN : PLCC
GMS81024
GMS81032
PDIP
Skinny DIP
Skinny DIP
Please enter check marks as
2. Inclusion of Pull up Resistor
- R0 PORT
Y : Yes
N : No
Port
R00 R01 R02 R03 R04 R05 R06 R07
Y/N
yyyyyy yy
Y/N *0
- R1 PORT
Port
R10
Y/N
n
Y/N *0
- R2 PORT
Port
R20
Y/N
n
Y/N *0
R11 R12*2 R13*2 R14*2 R15*2
nnnn n
Y : Yes
N : No
R21*1 R22*1 R23*1 R24*1
Y : Yes
N : No
R16 R17
nn
< NOTICE >
. *0 : is only available in Low Voltage detection Option = Y (No . 3)
*1 : is not available for 20PIN & 24PIN. So, Default option is Pull-Up.
. *2 : is not available for 20PIN. So, Default Option is Pull-Up.
3. Low Voltage Detection
Y/N
n
Date
:
Company Name :
Section Name :
Signature
:
B-1 ,Circuit Description:
device : GMS81016
package : 24PIN SOP
port R0x : All input port with pull-up resistor
port R1x : All output port with N-MOS
Open drain
port R20 : LED Drive port
S/W example Refer to Circuit B-1
; Example program for Port setting.
ORG 0C000H
Reset :
clrg
ldx #0feh
txsp
DI
ldm R2dd,#0001_1111b
ldm R2,#1111_1111b
ldm R1odc,#1111_1111b
ldm R1dd,#1111_1111b
ldm R1,#0000_0000b
ldm R0dd,#0000_0000b
ldm smrr0,#1111_1111b
ldm smrr1,#0000_0000b
ldm Ienh,#1000_0000b
ldm ckctlr,#0001_1101b
clr1 IRQKSCN
STOP
NOP
ldm R1,#1111_1111b
; GMS81016 Program Start Address
; Clear G-Flag
; Stack Pointer Initialize
; Interrupt disable
; R2 direction setting,R20: Output
; R2 data setting , R20 : High,Led off
; R1 port all open drain
; R1 direction setting ,All output
; R1 data setting , all Low for key scan
; R0 direction setting ,All input
; Stop mode release by R0
; Stop disable by R1
; Key scan interrupt setting
; Ckctlr setting for 16mS time delay after
; release from stop mode, WDT disable.
; key scan interrupt request flag clear
; `NOP instruction must to be used after
; Stop instruction
B -2