You are on page 1of 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