S1C6S3N2 TECHNICAL SOFTWARE
EPSON
II-105
CHAPTER 6: INITIAL RESET
INIT:
LD
A,0AH
;
LD
SPH,A
;
LD
A,0H
;
LD
SPL,A
;
;
LD
X,00H
;
CLRLP1: LDPX
MX,0H
;
CP
XH,7H
;
JP
C,CLRLP1
;
;
LD
X,80H
;
CLRLP2: LDPX
MX,0H
;
CP
XH,0FH
;
JP
C,CLRLP2
;
;
RST
F,0000B
;
Set Stack pointer bottom as A0H
Clear RAM area 00H–6FH
Clear MX, and increment X register
Continue until X register become 70H
Clear RAM area 80H–EFH
Clear MX, and increment X register
Continue until X register becomes F0H
Reset Flag group
Program
Note
This program is the basic initialize program for the
S1C6S3N2 Series. When this program is executed, the
internal circuits are initialized as shown in Table 6.2.1.
When using the program example, be sure to add any set-
ting items necessary for your applications.
Summary of Contents for S1C6S3N2
Page 4: ......
Page 6: ......
Page 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Page 8: ......
Page 141: ...Software Software S1C6S3N2 II Technical Software ...
Page 142: ......
Page 146: ......