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_clock [2021/10/08 14:02] – frtt | stm32:peripherals:timer_clock [2022/12/28 07:56] (current) – [SMCR - Slave mode control register] ruan | ||
---|---|---|---|
Line 2: | Line 2: | ||
\\ {{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: | ||
|::: | |::: | ||
|::: | |::: | ||
- | |ETF|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. */ | ||
+ | </ | ||
+ | \\ |