0% found this document useful (0 votes)
46 views

Q4

An 8-digit 7-segment display is to be connected to an 8051 microcomputer. The display is common-cathode. A circuit can connect each segment of the display to an 8051 port pin with a resistor to limit current. The cathode of each display is connected to ground. This allows data from the 8051 register bank to control the segments and display up to 8 decimal digits. An assembly subroutine can output the register bank contents to the displays in one scan. A main program can continually display the 8 digits by calling the subroutine repeatedly.

Uploaded by

Hamid Farhan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views

Q4

An 8-digit 7-segment display is to be connected to an 8051 microcomputer. The display is common-cathode. A circuit can connect each segment of the display to an 8051 port pin with a resistor to limit current. The cathode of each display is connected to ground. This allows data from the 8051 register bank to control the segments and display up to 8 decimal digits. An assembly subroutine can output the register bank contents to the displays in one scan. A main program can continually display the 8 digits by calling the subroutine repeatedly.

Uploaded by

Hamid Farhan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Q4 Eight digit 7-segment display devices, as shown, is to be interfaced an 8051 microcomputer.

a f g g e d c b

a) With the aid of a simple hardware diagram, explain how this device can be connected to the 8051. Assume that the 7-segment display is a common-cathode device. Show connections to the power supply source and state the estimated current consumption for your circuit. b) Write an 8051 assembly language subroutine which output register bank 0 content's to the displays. Assume that content of R0-R7 is 7_seg code of 8 BCD digits. This subroutine scans displays only one time. c) Write an 8051 assembly language main program to display 8 digits continually.

You might also like