Appendix B. PROGRAMMER`S GUIDE
Mask Option List Example Refer to Circuit B-1
B-1 ,Circuit Description:
GMS810 MASK OPTION LIST
device : GMS81016
package : 24PIN SOP
HYUNDAI ELCTRONICS Co., Ltd.
Code Name : GMS81016 - UAxxx
1. Device & Package
MCU Application Team.
port R0x : All input port with pull-up resistor
port R1x : All output port with N-MOS
Open drain
Please enter check marks as
GMS81004
GMS81008
GMS81024
GMS81032
GMS81016
20PIN : SOP
24PIN : SOP
28PIN : SOP
44PIN : PLCC
PDIP
Skinny DIP
Skinny DIP
port R20 : LED Drive port
2. Inclusion of Pull up Resistor
Y : Yes
N : No
- R0 PORT
Port
Y/N
Y/N
R00
y
R01
y
R02
y
R03
y
R04
y
R05
y
R06
y
R07
y
*0
Y : Yes
N : No
- R1 PORT
R17
n
Port
Y/N
Y/N
R10
n
R11 R12*2 R13*2 R14*2 R15*2 R16
n
n
n
n
n
n
*0
Y : Yes
N : No
- R2 PORT
Port
Y/N
Y/N
R20 R21*1 R22*1 R23*1 R24*1
n
*0
< 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.
Date
:
3. Low Voltage Detection
Company Name
Section Name
Signature
:
Y/N
n
:
:
S/W example Refer to Circuit B-1
; Example program for Port setting.
ORG 0C000H
; GMS81016 Program Start Address
Reset :
clrg
; Clear G-Flag
ldx
txsp
DI
#0feh
; Stack Pointer Initialize
; Interrupt disable
ldm R2dd,#0001_1111b
ldm R2,#1111_1111b
; R2 direction setting,R20: Output
; R2 data setting , R20 : High,Led off
ldm R1odc,#1111_1111b ; R1 port all open drain
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
; 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
clr1 IRQKSCN
STOP
NOP
; `NOP instruction must to be used after
; Stop instruction
ldm R1,#1111_1111b
B -2