1 / 7

Multiplexed Display

Multiplexed Display. 7 segment display Two ports required Data segment drive Digit drive. Control word is for initializing the PPI to our required mode Mode 1, port A and port C output port Control word address the chip select address 80H here. g f e d c b a. 0 1 1 1 0 1 1 1. 77H = A.

gyan
Download Presentation

Multiplexed Display

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Multiplexed Display • 7 segment display • Two ports required • Data segment drive • Digit drive

  2. Control word is for initializing the PPI to our required mode • Mode 1, port A and port C output port • Control word address the chip select address 80H here. g f e d c b a 0 1 1 1 0 1 1 1 77H = A 79H = E 73H = P

  3. PORTA EQU 80H ; port A address, segment drive PORTC EQU 82H ;port C address, digit drive CNTRL EQU 83 ;address of control register MVI A, 10000000B ; loading Acc with control word; ; mode 0, A and C as o/p OUT CNTRL ; Initializes 8255A as require READY: MVI B, 00000001B ; Initializes digit code MVI C, 04H ; Initializes counter for 4 LEDs LXI H, SYSRDY ; Uses HL as memory pointer for message NEXT: MOV A, M ; Get segment code OUT PORTA ; Output segment code MOV A, B ;Get digit code OUT PORTC ; Turn on the digit LEDs CALL DELAY1 ; wait 1 millisecond XRA A ; clear Accumulator OUT PORTA ;turn off LEDs of the digit MOV A,B ; RLC ;shift digit code to turn on next digit MOV B,A ;save the digit code INX HL ;point to next code DCR C ; JNZ NEXT ; RET SYSRDY: DB 79H,79H,73H,77H ;message code – APEE, right E sent first

  4. Matrix Keyboard Interface

More Related