![]() ![]() ![]() So let us prepare circuit diagram to Interface 2-Digit Seven Segment display with Microcontroller AT89S52. Also we need Proteus simulator to simulate the circuit with program. So our complete project code will be look line like this as shown below:Īs I explain in previous tutorial to getting start with microcontroller programming we need install Keil Microvision software on our system. The connections which are done for Seven segment Display are given below: Now to pass each hex value port D let create array of which hold all hex value as per above table. PORTD = 0x00 // DATA pin FOR LCD 8bits port D as output We will trigger each segment value with 0.3 second delay. Number / DigitsĪs shown in table we need to send Hex value to segment a-g through 0 t0 6th bits of PORTD, So we need to set PORTD as output. Below table shows the binary/hex values for displaying the digits on Common Cathode seven segment display. To get the 0 to 9 digits with common Cathode Method let prepare truth Table.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |