From f4e01a3a8fb17385964e93b4bffb285dd48aa75f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kn=C3=BCttel?= Date: Wed, 17 Jul 2019 16:13:50 +0200 Subject: [PATCH] enabled the second voltage inverter clock --- analogout.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/analogout.c b/analogout.c index f78a8eb..3de9de7 100644 --- a/analogout.c +++ b/analogout.c @@ -4,10 +4,11 @@ void analogout_init(void) { - DDRD |= _BV(PD5); - TCCR0A = _BV(COM0B1) | _BV(WGM01) | _BV(WGM00); + DDRD |= _BV(PD5) | _BV(PD6); + TCCR0A = _BV(COM0B1) | _BV(WGM01) | _BV(WGM00) | _BV(COM0A1); TCCR0B = _BV(CS00); OCR0B = 0xff / 2; + OCR0A = 0xff / 2; }