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_output [2016/06/28 07:26] – [CCER] feur | stm32:peripherals:timer_output [2016/06/28 11:55] (current) – removed feur | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Timer Output ====== | ||
- | \\ {{timer_output.svg}} \\ \\ | ||
- | |||
- | ===== Programming Example ===== | ||
- | |||
- | The code snippet bellow shows how to configure and use a GPIO pin as input. | ||
- | |||
- | <code c> | ||
- | #include " | ||
- | |||
- | /* TO-DODELI DOO. */ | ||
- | </ | ||
- | \\ | ||
- | |||
- | > {{logo_hal.svg? | ||
- | > [[https:// | ||
- | > [[https:// | ||
- | \\ | ||
- | |||
- | ===== Configuration Registers ===== | ||
- | |||
- | ==== CCMR1/2 ==== | ||
- | |||
- | Capture/ | ||
- | |||
- | \\ {{timer_reg_ccmr1.svg}} {{timer_reg_ccmr2.svg}} \\ \\ | ||
- | |||
- | ==== DIER ==== | ||
- | |||
- | DMA / Interrupt enable register | ||
- | |||
- | \\ {{timer_reg_dier.svg}} \\ \\ | ||
- | |||
- | |< 100% 5em 5em >| | ||
- | |CCxDE|0|CCx DMA request disabled (reset state)| | ||
- | |::: |1|CCx DMA request enabled| | ||
- | |CCxIE|0|CCx interrupt disabled (reset state)| | ||
- | |::: |1|CCx interrupt enabled| | ||
- | |||
- | ==== CCER ==== | ||
- | |||
- | Capture/ | ||
- | |||
- | \\ {{timer_reg_ccer.svg}} \\ \\ | ||
- | |||
- | |< 100% 5em 5em >| | ||
- | |CCxE|0|Capture/ | ||
- | |::: | ||
- | |||
- | |||
- | |||
- | ===== Legend ===== | ||
- | |||
- | \\ {{legende.svg}} \\ \\ |