heater.c: increase timer4 slow PWM from 15 Hz to 61 Hz.

This commit is contained in:
David Forrest 2012-11-14 12:06:14 -05:00 committed by Markus Hitter
parent 244d8b6654
commit e65526f9da
1 changed files with 2 additions and 1 deletions

View File

@ -140,7 +140,8 @@ void heater_init() {
TCCR4D = MASK(WGM40); // Phase correct
TCCR4B = MASK(CS40); // no prescaler
#ifndef FAST_PWM
TCCR4B = MASK(CS40) | MASK(CS42) | MASK(CS43); // 16mhz / 4096 /256
TCCR4B = MASK(CS40) | MASK(CS42) | MASK(CS43); // 16 MHz / 1024 / 256
//TCCR4B = MASK(CS40) | MASK(CS41) | MASK(CS43); // 16 MHz / 4096 / 256
#endif
TC4H = 0; // clear high bits
OCR4C = 0xff; // 8 bit max count at top before reset