mathespbe
Full Member level 3
- Joined
- Jul 10, 2013
- Messages
- 185
- Helped
- 45
- Reputation
- 90
- Reaction score
- 44
- Trophy points
- 28
- Location
- India, Tamilnadu, Coimbatore
- Activity points
- 866
void battery_check()
{
/**Condition for LED brightness adjustment Between 13V and 10.5V battery voltages**/
if(Battery_Value > 321)
{
//FLAG_1 = 1;
INTCON = 0b10100000;//////////////Timer0 interrupt starts/////////////////
divide_val = (Battery_Value-321)*255/462;
//LOAD = ON;
if(FLAG_1 == 1){
FLAG_1 = 0;
}
}
Yes load will turn ON once panel volt is less than 1V and will be OFF when Panel Volt is >3V. These two values i.e. 1V and 3V could be changed according to sunlight that's the only case no more complexity is there. Is Timer0 turning ON interrupt is incorrect??????
Can you please tell me the exact problem u r facing now with this code?