From e65526f9dab7681272bc2daab77f223591ebf85f Mon Sep 17 00:00:00 2001 From: David Forrest Date: Wed, 14 Nov 2012 12:06:14 -0500 Subject: [PATCH] heater.c: increase timer4 slow PWM from 15 Hz to 61 Hz. --- heater.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/heater.c b/heater.c index df03488..9d2e74c 100644 --- a/heater.c +++ b/heater.c @@ -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