diff --git a/firmware/main.c b/firmware/main.c index 1acd80d..5583453 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -69,8 +69,8 @@ int main(void) TIM14->ARR = 0x00FFu; TIM14->CNT = 0u; TIM14->CCR1 = 0u; - /*! -# Set prescaler to 16 ==> ca. 11 KHz */ - TIM14->PSC = 15u; + /*! -# Set prescaler to 11 ==> ca. 17 KHz */ + TIM14->PSC = 11u - 1u; /*! -# PWM Mode 1 + prefetch */ TIM14->CCMR1 = TIM_CCMR1_OC1M_2 | TIM_CCMR1_OC1M_1 | TIM_CCMR1_OC1PE; /*! -# Enable Output compare 1 */