Revision 592
bigger inductor seems to not work without the freq hack
ConstantCharging.c | ||
---|---|---|
454 | 454 |
|
455 | 455 |
/* Trickle Charge */ |
456 | 456 |
if(status==1) |
457 |
OCR1B = 206;
|
|
457 |
OCR1B = 10020;
|
|
458 | 458 |
} |
459 | 459 |
/* NO CONTACT */ |
460 | 460 |
else |
... | ... | |
743 | 743 |
{ |
744 | 744 |
wait(2); //wait a bit so we know the ouput gets set (which happens at timer = 0) |
745 | 745 |
|
746 |
TCNT1 = 156; // start out at 156. Now OCR1B - 156 = duty cycle |
|
746 |
TCNT1 = 0;//156; // start out at 156. Now OCR1B - 156 = duty cycle
|
|
747 | 747 |
} |
748 | 748 |
|
749 | 749 |
ISR(PCINT_vect){;} //so the interrupt doesnt go to the reset vector |
Also available in: Unified diff