Epson E0C6001 Technical Manual page 96

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

• Bit-unit checking of input ports
Label
Mnemonic/operand
DI
LD
INPUT1: FAN
JP
INPUT2: FAN
JP
This program loopes until a rising edge is input to input port
K01.
The input port can be addressed using the X register instead
of the Y register.
Note
When the input port is changed from high level to low level with a
pull-down resistor, the signal falls following a certain delay caused
by the time constants of the pull-down resistance and the input
gate capacitance. It is therefore necessary to observe a proper
wait time before the input port data is read.
CHAPTER 3: PERIPHERAL CIRCUITS (Input Port)
Comment
;
Disable interrupt
Y,0E0H
;
Set address of port
MY,0010B
;
NZ,INPUT1
;
Loop until K01 becomes "0"
MY,0010B
;
Z,INPUT2
;
Loop until K01 becomes "1"
II-15

Advertisement

Table of Contents
loading

Table of Contents