Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Timer Clock Source ====== \\ {{timer_clock.svg}} \\ \\ ===== Configuration Registers ===== ==== TIMx_CR1 - Configuration register 1 ==== \\ {{timer_reg_cr1.svg}} \\ \\ |< 100% 5em 5em >| |CKD|00|t<sub>DTS</sub> => t<sub>CKINT</sub>| |:::|01|t<sub>DTS</sub> => 2 · t<sub>CKINT</sub>| |:::|10|t<sub>DTS</sub> => 4 · t<sub>CKINT</sub>| |:::|11|Reserved| ==== TIMx_SMCR - Slave mode control register ==== \\ {{timer_reg_smcr.svg}} \\ \\ |< 100% 5em 5em 20em 5em >| |ETP|0|ETR is noninverted, active at high level or rising edge (reset state)|| |:::|1|ETR is inverted, active at low level or falling edge|| |ETPS|00|Prescaler off (reset state)|| |:::|01|f<sub>ETRP</sub> / 2|| |:::|10|f<sub>ETRP</sub> / 4|| |:::|11|f<sub>ETRP</sub> / 8|| ===== Programming Example ===== The code snippet below shows how to configure and use a GPIO pin as input. <code c> #include "reg_stm32f4xx.h" /* TO-DODELI DOO. */ </code> \\ stm32/peripherals/timer_clock.txt Last modified: 2022/12/28 07:56by ruan