Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
stm32:peripherals:timer_base [2022/12/27 17:50] – [Programming Example] ruan | stm32:peripherals:timer_base [2023/10/19 09:49] (current) – frtt | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== Configuration Registers ===== | ===== Configuration Registers ===== | ||
- | ==== CR1 - Configuration register 1 ==== | + | ==== TIMx_CR1 |
- | + | ||
\\ {{timer_reg_cr1.svg}} \\ \\ | \\ {{timer_reg_cr1.svg}} \\ \\ | ||
Line 19: | Line 17: | ||
|::: | |::: | ||
//*This bit is readonly in center-aligned or encoder mode// \\ | //*This bit is readonly in center-aligned or encoder mode// \\ | ||
- | ==== DIER - DMA / Interrupt enable register ==== | + | |
+ | ==== TIMx_DIER | ||
\\ {{timer_reg_dier.svg}} \\ \\ | \\ {{timer_reg_dier.svg}} \\ \\ | ||
Line 31: | Line 30: | ||
|::: | |::: | ||
- | ==== SMCR - Slave mode control register ==== | + | ==== TIMx_SMCR |
\\ {{timer_reg_smcr.svg}} \\ \\ | \\ {{timer_reg_smcr.svg}} \\ \\ | ||
Line 55: | Line 54: | ||
|::: | |::: | ||
- | ==== PSC - Prescaler register ==== | + | ==== TIMx_PSC |
\\ {{timer_reg_psc.svg}} \\ \\ | \\ {{timer_reg_psc.svg}} \\ \\ | ||
- | ==== ARR - Auto reload register ==== | + | ==== TIMx_ARR |
\\ {{timer_reg_arr.svg}} \\ \\ | \\ {{timer_reg_arr.svg}} \\ \\ | ||
Line 65: | Line 64: | ||
===== Data Registers ===== | ===== Data Registers ===== | ||
- | ==== CNT - Count register ==== | + | ==== TIMx_CNT |
\\ {{timer_reg_cnt.svg}} \\ \\ | \\ {{timer_reg_cnt.svg}} \\ \\ | ||
Line 79: | Line 78: | ||
/* configure timer */ | /* configure timer */ | ||
- | TIM2-> | + | TIM2-> |
- | TIM2-> | + | TIM2-> |
TIM2-> | TIM2-> | ||
</ | </ | ||
\\ | \\ |