
Contents
RM0008
Doc ID 13902 Rev 12
Basic timers (TIM6&TIM7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452
TIM6&TIM7 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452
TIM6&TIM7 main features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452
TIM6&TIM7 functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453
TIM6&TIM7 control register 1 (TIMx_CR1) . . . . . . . . . . . . . . . . . . . . . 458
TIM6&TIM7 control register 2 (TIMx_CR2) . . . . . . . . . . . . . . . . . . . . . 460
TIM6&TIM7 DMA/Interrupt enable register (TIMx_DIER) . . . . . . . . . . 460
TIM6&TIM7 status register (TIMx_SR) . . . . . . . . . . . . . . . . . . . . . . . . 461
TIM6&TIM7 event generation register (TIMx_EGR) . . . . . . . . . . . . . . 461
TIM6&TIM7 counter (TIMx_CNT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461
TIM6&TIM7 prescaler (TIMx_PSC) . . . . . . . . . . . . . . . . . . . . . . . . . . . 462
TIM6&TIM7 auto-reload register (TIMx_ARR) . . . . . . . . . . . . . . . . . . . 462
TIM6&TIM7 register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463
RTC functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 466
Resetting RTC registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 467
Reading RTC registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 467
Configuring RTC registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 467
RTC control register high (RTC_CRH) . . . . . . . . . . . . . . . . . . . . . . . . 469
RTC control register low (RTC_CRL) . . . . . . . . . . . . . . . . . . . . . . . . . . 470
RTC prescaler load register (RTC_PRLH / RTC_PRLL) . . . . . . . . . . . 471
RTC prescaler divider register (RTC_DIVH / RTC_DIVL) . . . . . . . . . . 472
RTC counter register (RTC_CNTH / RTC_CNTL) . . . . . . . . . . . . . . . . 473