| Electronic Components Datasheet Search |
|
AN4013 Datasheet(PDF) 10 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4013 Datasheet(HTML) 10 Page - STMicroelectronics |
|
10 / 37 page ![]() General-purpose timer modes AN4013 10/37 DocID022500 Rev 4 c) Enable the corresponding channel by setting the CCEx bit in the TIMx_CCER register. 2. Select the timer TIx as the trigger input source by writing TS bits in the TIMx_SMCR register. 3. Select the external clock mode1 by writing SMS=111 in the TIMx_SMCR register. External clock mode2 (ETR pin) The external clock mode2 uses the ETR pin as timer input clock. To use this feature: 1. Select the external clock mode2 by writing ECE = 1 in the TIMx_SMCR register. 2. Configure, if needed, the prescaler, the filter and the polarity by writing ETPS [1:0], ETF [3:0] and ETP in the TIMx_SMCR register. Internal trigger clock (ITRx) This is a particular mode of timer synchronization. When using one timer as a prescaler for another timer, the first timer update event or output compare signal is used as a clock for the second one. 2.2 Time base generator The timer can be used as a time base generator. Depending on the clock, prescaler and auto reload, repetition counter (if present) parameters, the 16-bit timer can generate an update event from a nanosecond to a few minutes. For the 32-bit timer, the range is larger. Example update event period The update event period is calculated as follows: Update_event = TIM_CLK/((PSC + 1)*(ARR + 1)*(RCR + 1)) TIM_CLK = 72 MHz Prescaler = 1 Auto reload = 65535 No repetition counter RCR = 0 Update_event = 72*106/((1 + 1)*(65535 + 1)*(1)) Update_event = 549.3 Hz Where: TIM_CLK = timer clock input PSC = 16-bit prescaler register ARR = 16/32-bit Autoreload register RCR = 16-bit repetition counter |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |