From c09a81e46207afd8e0dc3025836af617de65889c Mon Sep 17 00:00:00 2001 From: Mathias Rasmussen Date: Sat, 20 Feb 2021 06:02:29 +0100 Subject: [PATCH] refactor: Center align all pwm channels --- Common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common.inc b/Common.inc index 809a36a..1430639 100644 --- a/Common.inc +++ b/Common.inc @@ -159,7 +159,7 @@ Initialize_PCA MACRO mov PCA0PWM, #(80h + PWM_BITS_H) ;; Enable PCA auto-reload registers and set pwm cycle length (8-11 bits) IF PWM_CENTERED == 1 - mov PCA0CENT, #03h ;; Center aligned pwm + mov PCA0CENT, #07h ;; Center aligned pwm ELSE mov PCA0CENT, #00h ;; Edge aligned pwm ENDIF