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_input [2016/06/27 12:21] – [CR1] feur | stm32:peripherals:timer_input [2016/06/28 11:53] (current) – removed feur | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Timer Input ====== | ||
| - | \\ {{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 ===== | ||
| - | |||
| - | ==== CR1 ==== | ||
| - | |||
| - | Configuration register 1 | ||
| - | |||
| - | \\ {{timer_reg_cr1.svg}} \\ \\ | ||
| - | |||
| - | |< 100% 5em 5em >| | ||
| - | |CKD|00|t< | ||
| - | |::: | ||
| - | |::: | ||
| - | |::: | ||
| - | |||
| - | ==== SMCR ==== | ||
| - | |||
| - | Slave mode control register | ||
| - | |||
| - | \\ {{timer_reg_smcr.svg}} \\ \\ | ||
| - | |||
| - | |< 100% 5em 5em >| | ||
| - | |ETR|0|ETR is **not** inverted, active at high level or rising edge| | ||
| - | |:::|1|ETR is inverted, active at low level or falling edge| | ||
| - | |ECE|0|External clock mode 2 disabled| | ||
| - | |::: | ||
| - | |||
| - | ===== Data Registers ===== | ||
| - | |||
| - | ==== CNT ==== | ||
| - | |||
| - | Count register | ||
| - | |||
| - | \\ {{timer_reg_cnt.svg}} \\ \\ | ||
| - | |||
| - | ===== Legend ===== | ||
| - | |||
| - | \\ {{legende.svg}} \\ \\ | ||