From 3ab0110af192cf7746dadbcf5966bd125b49860f Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sat, 6 Nov 2021 02:20:34 -0600 Subject: greatly smoothed out SP10 ramp, and configured defaults also fixed random ramp stuttering, by adding phase-reset register to hwdef (though it still has a brief stutter sometimes while ramping down across the channel boundary, at least it always seems to be smooth while going up now) --- hwdef-Sofirn_SP10-Pro.h | 1 + 1 file changed, 1 insertion(+) (limited to 'hwdef-Sofirn_SP10-Pro.h') diff --git a/hwdef-Sofirn_SP10-Pro.h b/hwdef-Sofirn_SP10-Pro.h index 5ed716d..3cd405c 100644 --- a/hwdef-Sofirn_SP10-Pro.h +++ b/hwdef-Sofirn_SP10-Pro.h @@ -38,6 +38,7 @@ PA1 : Boost Enable #ifndef PWM1_PIN #define PWM1_PIN PB5 #define PWM1_LVL TCA0.SINGLE.CMP2 // PB5 is Alternate MUX for TCA Compare 2 +#define PWM1_CNT TCA0.SINGLE.CNT // for resetting phase after each TOP adjustment #endif // Big channel -- cgit v1.2.3