Okada
Banned
Hi
I am making a simple Battery Charger using PIC12F675. All registers are configured properly. I have used mikroE Timer Calculator to generate 250 ms Timer1 interrupt code. I need to blink the green Led three times at 500 ms when the device starts but it is only blinking once. I don't know what is the problem. I spent 4 hours trying to figure out the problem but not able to find it.
I am attaching mikroC PRO PIC project and Proteus file.
The code inside the timer routine in ISR has two nested if() conditions and if I comment the inner if() condition then Green Led blinks at 500ms continuously.
I am making a simple Battery Charger using PIC12F675. All registers are configured properly. I have used mikroE Timer Calculator to generate 250 ms Timer1 interrupt code. I need to blink the green Led three times at 500 ms when the device starts but it is only blinking once. I don't know what is the problem. I spent 4 hours trying to figure out the problem but not able to find it.
I am attaching mikroC PRO PIC project and Proteus file.
The code inside the timer routine in ISR has two nested if() conditions and if I comment the inner if() condition then Green Led blinks at 500ms continuously.