This commit is contained in:
olikraus 2017-06-29 20:18:40 +02:00
parent 2a99f07150
commit 0bb67ff95c
2 changed files with 14 additions and 1 deletions

View File

@ -80,7 +80,12 @@ void boost_converter(void)
TIM22->CR1 &= ~(uint32_t)TIM_CR1_UDIS;
/* update event can be caused by UG bit and overflow (this is default) */
TIM22->CR1 &= ~(uint32_t)TIM_CR1_URS
TIM22->CR1 &= ~(uint32_t)TIM_CR1_URS;
/* enable the counter */
TIM22->CR1 |= TIM_CR1_CEN;
TIMx->CR1 |= TIM_CR1_CEN; /* (6) */

View File

@ -225,4 +225,12 @@ A) short description of the STM32L0 RTC
- special case for winter time change (double hour)
C) Date calculation
D) Code
---------------
Man scheint die zeit nicht immer vorzeitig ausschalten zu können. Warum?
Erneutes eingeben der alarmzeit behebt das problem.