![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
LIGHT2
Diff: INIT_HW/INIT_HW.cpp
- Revision:
- 15:bd0d12728506
- Parent:
- 11:82d8768d7351
- Child:
- 20:806196fda269
--- a/INIT_HW/INIT_HW.cpp Thu Aug 29 07:38:00 2019 +0000 +++ b/INIT_HW/INIT_HW.cpp Fri Aug 30 02:26:11 2019 +0000 @@ -70,7 +70,7 @@ //PWM Setup TIM3->PSC = 0x0; // no prescaler, timer counts up in sync with the peripheral clock - TIM3->ARR = TMR3_COUNT; // set auto reload, 40 khz + TIM3->ARR = TMR3_COUNT; // set auto reload, 5 khz TIM3->CCER |= ~(TIM_CCER_CC1NP); // Interupt when low side is on. TIM3->CR1 |= TIM_CR1_CEN; // enable TIM4 } \ No newline at end of file