kobre98
Full Member level 2
- Joined
- Sep 18, 2011
- Messages
- 145
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,296
- Location
- Gaza, Palestine
- Activity points
- 2,523
Please zip and post your complete mikroC project files. I will set the config bits properly and post the modified project.
The project is not opening in mikroC 8.2. I viewed the code and it just contains RTC DS1307 code. If it is only RTC project then you can use any clock frequency.
I said I tried to open the project in mikroC 8.2. That is the non Pro version. What do you mean by it doesn't work in hardware ? LCD doesn't display anything ?
Please zip and post the complete mikroC project files which opens in mikroC.
The file from the proj.rar opened but Proteus file doesn't open. Please post the circuit in .png format. 5 ms timer is needed for 7 Segment display so that it doesn't flicker. How many 7 Segment displays are there in the circuit ?
I said I tried to open the project in mikroC 8.2. That is the non Pro version. What do you mean by it doesn't work in hardware ? LCD doesn't display anything ?
Please zip and post the complete mikroC project files which opens in mikroC.
The file from the proj.rar opened but Proteus file doesn't open. Please post the circuit in .png format. 5 ms timer is needed for 7 Segment display so that it doesn't flicker. How many 7 Segment displays are there in the circuit ?
INTCON=0b00100000;
ADCON1 = 0x87;
void main()
In ISR they had used if() conditions instead of if...else if() conditions. Maybe it is because they wanted the ISR to take the same amount of time to execute irrespective of which if() condition is true..
Edit:
If the 2nd if() condition was executed in ISR then it doesn't matter how many other if() conditions are executed after it. So, it is good to use if...else if().
In the mikroC project you posted the GIE bit was cleared and TME0IF bit was not cleared in the ISR. According to that the 2 displays driven by x0 in Proteus file would be ON all the time after the first interrupt, assuming no other interrupt other than TMR0 interrupt occurs. After the 1st interrupt, no further interrupts (timer0) would occur. I don't know how you said that the displays work fine in Proteus but flicker in hardware.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?