So after setting the prescaler value I then set the UG bit in the TIM2_EGR register. // Set the prescaler based on an 8MHz clock. p.TIM2.psc.
確定! 回上一頁