Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| stm32:peripherals:timer_clock [2016/06/28 11:54] – created feur | stm32:peripherals:timer_clock [2022/12/28 07:56] (current) – [SMCR - Slave mode control register] ruan | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Timer Input ====== | + | ====== Timer Clock Source |
| \\ {{timer_clock.svg}} \\ \\ | \\ {{timer_clock.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 ===== | ===== Configuration Registers ===== | ||
| - | ==== CR1 ==== | + | ==== TIMx_CR1 - Configuration register 1 ==== |
| - | + | ||
| - | Configuration register 1 | + | |
| \\ {{timer_reg_cr1.svg}} \\ \\ | \\ {{timer_reg_cr1.svg}} \\ \\ | ||
| Line 33: | Line 15: | ||
| |::: | |::: | ||
| - | ==== SMCR ==== | + | ==== TIMx_SMCR - Slave mode control register |
| - | + | ||
| - | Slave mode control register | + | |
| \\ {{timer_reg_smcr.svg}} \\ \\ | \\ {{timer_reg_smcr.svg}} \\ \\ | ||
| Line 46: | Line 26: | ||
| |::: | |::: | ||
| |::: | |::: | ||
| - | |EXTSEL|0000|No filter, f< | ||
| - | |::: | ||
| - | |::: | ||
| - | |::: | ||
| - | |::: | ||
| - | |::: | ||
| - | |::: | ||
| - | |::: | ||
| - | ===== Legend | + | ===== Programming Example |
| - | \\ {{legende.svg}} \\ \\ | + | The code snippet below shows how to configure and use a GPIO pin as input. |
| + | |||
| + | <code c> | ||
| + | #include " | ||
| + | |||
| + | /* TO-DODELI DOO. */ | ||
| + | </ | ||
| + | \\ | ||