Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Why the leftmost 2 SSD doesn't display any data?

Status
Not open for further replies.
Advanced Member level 6
Joined
Dec 4, 2012
Messages
4,280
Helped
822
Reputation
1,654
Reaction score
791
Trophy points
1,393
Location
Bangalore, India
Visit site
Activity points
0
I tried debugging the code and everything is ok. Expected values are being assigned to PORTD but the leftmost two SSD doesn't display data. I tried using 8 X and 6 X CA SSD in Proteus . If I use them the left most digit will always be 0.


Edit:

The problem got solved. Now it is displaying right values. I reinstalled Proteus. There was no problem in the code.
 

Attachments

  • 877a.rar
    63.6 KB · Views: 79
  • 877a_a.rar
    102.3 KB · Views: 80
Last edited:

Wrong PORTB values for digit enable:
Code:
              PORTB = [COLOR="#FF0000"]0xf1[/COLOR];
               PORTD = CA[strtemp[6]-0x30];
               Delay_ms(3);
               PORTB = [COLOR="#FF0000"]0xf2[/COLOR];
               PORTD = CA[strtemp[5]-0x30];
               Delay_ms(3);
               PORTB = [COLOR="#FF0000"]0xf4[/COLOR];
               PORTD = CA[strtemp[4]-0x30];
               Delay_ms(3);
               PORTB = [COLOR="#FF0000"]0xf8[/COLOR];
               PORTD = CA[strtemp[3]-0x30];
               Delay_ms(3);
               PORTB = 0x10;
               PORTD = CA[strtemp[1]-0x30];
               Delay_ms(3);
               PORTB = 0x20;
               PORTD = CA[4];
               Delay_ms(3);
 

Attachments

  • 877a_b.rar
    171.9 KB · Views: 82
  • 877a_c.rar
    171.8 KB · Views: 89
Last edited:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top