

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
skibidi di di did skibidi skibdi
Typology: Summaries
1 / 2
This page cannot be seen from the preview
Don't miss anything!
PB: EQU 81H ;port B PC: EQU 82H ;port C CR: EQU 83H ;control register
ORG 0000H JMP START
ORG 0024H RET
OUT CR ;configure the ppi MVI A,00H OUT PB MVI A,00H XRI 01H
MAIN: CALL PSB_SCN JMP MAIN
PSB_SCN: ;function for scanning psb MVI C,00H ;counter for psb scan index IN PA ;first scanning instant ORI 00H ;check if button is pressed or not JZ START ;jump to start if no switch pressed MOV D,A CALL DLY20MS ;call delay IN PA CMP D ;check valid press JNZ RT_PSB X: ;generate psb index INR C RAR JNC X CALL DISP
DISP: ;function for 7s diplay LXI H,TABLE ;initialize M with lut address MOV A,C SUI 01H ADD L ;add index to M value MOV L,A MOV A,M OUT PB RET
DLY20MS: ;DELAY function