Download presentation
Presentation is loading. Please wait.
Published byAugust George Modified over 6 years ago
1
Interfacing Keyboard and Seven Segment Display Lecture 2
Gunjeet Kaur Dronacharya Group of Institutions
2
Flow chart: Key check subroutine
3
Program for Keycheck Subroutine
KYCHK: IN PORT A CPI 0FFH JNZ KYCHK CALL DBOUNCE KYPUSH: IN PORT A JZ KYPUSH CMA ORA A RET
4
Port Connections
5
Interfacing 4*4 Keyboard
6
Flow chart: Keyboard Debounce
7
Pushbutton key & Key Debounce
8
PROGRAM FOR KEY DEBOUNCE
DBOUNCE: PUSH B PUSH PSW LXI B,COUNT LOOP: DCX B MOV A,C ORA B JNZ LOOP POP PSW POP BC RET
9
MAIN PROGRAM KYBOARD: PORT A EQU FCH PORT B EQU FDH CNWORD EQU FFH STACK EQU 20 AFH LXI SP,STACK PPI: MVI A,CNWRD OUT CNTRL NEXTKY: CALL KYCHK CALL KYCODE CALL DSPLAY JMP NEXTKY
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.