jayanth.devarayanadurga
Banned
- Joined
- Dec 4, 2012
- Messages
- 4,280
- Helped
- 822
- Reputation
- 1,654
- Reaction score
- 791
- Trophy points
- 1,393
- Location
- Bangalore, India
- Activity points
- 0
I need to display 4 three digit numbers (integers) on 7 Segment displays. I have written a code but it is not displaying properly. Only one digit lights up. I am attaching files (mikroC + Proteus). There are two problems and I don't know what are causing those problems.
1. The SSD[][] array's 2nd, 3rd, 4th rows are being loaded with wrong SSD data.
2. Displays doesn't light up properly.
CA SSDs are used. First I used interrupt to display the data but it didn't work. So I have commented the Timer initialization and have placed the code inside while(1) loop. Now ISR doesn't work. I am only testing code inside while(1) loop.
I have debugged the code in mikroC Compiler, then in Proteus, and finally in hardware using mikroProg but the same problem in all. The array gets loaded with wrong data.
Please somebody solve the problem.
1. The SSD[][] array's 2nd, 3rd, 4th rows are being loaded with wrong SSD data.
2. Displays doesn't light up properly.
CA SSDs are used. First I used interrupt to display the data but it didn't work. So I have commented the Timer initialization and have placed the code inside while(1) loop. Now ISR doesn't work. I am only testing code inside while(1) loop.
I have debugged the code in mikroC Compiler, then in Proteus, and finally in hardware using mikroProg but the same problem in all. The array gets loaded with wrong data.
Please somebody solve the problem.
Last edited: