Beruflich Dokumente
Kultur Dokumente
ADDRESS MNEMONICS OPCODE COMMENTS
2000 MVI A, 80 3E LOAD ACCUMLATOR WITH THE
2001 80 CONTROL WORD
1)Y DEVICE1 ON:- This subroutine switches ON the first device that is
connected to PORT A of 8255A.
2)Y DEVICE1 OFF: This subroutine switches OFF the first device connected to
PORT A of 8255A.
3)Y DEVICE2 ON: This subroutine switches ON the device connected to PORT B
of 8255A.
4)Y DEVICE2 OFF: This subroutine switches OFF the device connected to PORT B
of 8255A.
5)Y DELAY ON: This subroutine gives delay about 3seconds when called. This
delay is used to set the ON duration of electronic device. User can alter the
delay time by entering desired hexadecimal number at address location
2091H. (remember 01H gives delay of 0.5 seconds of delay)
6)Y DELAY OFF: This delay subroutine is used to set the OFF duration of the
device. During this Off time user can place an interrupt by giving +5V at the
17th or 18th terminal of the 8259A interrupt controller.
7)Y INTERRUPT CALL DEVICE1: This subroutine is the vector address for the
microprocessor, it reads interrupt when +5V is provided at the terminal 17th
terminal of 8259A.
8)Y INTERRUPT CALL DEVICE2: When +5V is provided at the 18th terminal, this
subroutine is read by the microprocessor.
12)Y CALL DELAY: We are using DELAY subroutine that is already been
written in microprocessor. Its address location is 03BCH. This subroutine
DELAY gives delay of about 0.5 seconds.