Presentation is loading. Please wait.

Presentation is loading. Please wait.

Interfacing Keyboard and Seven Segment Display Lecture 2

Similar presentations


Presentation on theme: "Interfacing Keyboard and Seven Segment Display Lecture 2"— Presentation transcript:

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


Download ppt "Interfacing Keyboard and Seven Segment Display Lecture 2"

Similar presentations


Ads by Google