II-46
EPSON
S1C6S3N2 TECHNICAL SOFTWARE
CHAPTER 5: PERIPHERAL CIRCUITS (Output Ports)
(4) Control of BZ (when R13 is R10 control)
BZ4:
LD
X,0F6H
;
LD
MX,0000B
;
LD
X,7CH
;
OR
MX,0001B
;
RET
;
BZ2:
LD
X,0F6H
;
LD
MX,1000B
;
LD
X,7CH
;
OR
MX,0001B
;
RET
;
BZOF:
LD
X,7CH
;
AND
MX,1110B
;
RET
;
Set BZ frequency to 4 kHz
Make R10 and R13 high output
Return to parent routine
Set BZ frequency to 2 kHz
Make R10 and R13 high output
Returns to parent routine
Make R10 and R13 low output
Return to parent routine
This is the subroutine to switch BZ and BZ ON and OFF
when R13 has become R10 control.
In subroutine "BZ4", BZ output is switched ON after the BZ
frequency is set to 4 kHz.
In subroutine "BZ2", BZ output is switched ON after the BZ
frequency is set to 2 kHz.
In subroutine "BZOF", BZ output is switched OFF.
Program
Specifications
None of these routines affects registers R11–R13 (output
pins R11 and R12).
Note
Содержание S1C6S3N2
Страница 4: ......
Страница 6: ......
Страница 7: ...Hardware Hardware S1C6S3N2 I Technical Hardware ...
Страница 8: ......
Страница 141: ...Software Software S1C6S3N2 II Technical Software ...
Страница 142: ......
Страница 146: ......