| поискавой системы для электроныых деталей |
|
AN4013 датащи(PDF) 14 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4013 датащи(HTML) 14 Page - STMicroelectronics |
|
14 / 37 page ![]() General-purpose timer modes AN4013 14/37 DocID022500 Rev 4 To configure the timer in one of these modes: 1. Select the clock source. 2. Write the desired data in the ARR and CCRx registers. 3. Configure the output mode: a) Select the output compare mode: timing / active / inactive / toggle. b) In case of active, inactive and toggle modes, select the polarity by writing CCxP in CCER register. c) Disable the preload feature for CCx by writing OCxPE in CCMRx register. d) Enable the capture / compare output by writing CCxE in CCMRx register. 4. Enable the counter by setting the CEN bit in the TIMx_CR1 register. 5. Set the CCxIE / CCxDE bit if an interrupt / DMA request is to be generated. Timer output compare timing / toggle update rate computation CCx update rate = TIMx_Counter_CLK / CCRx If internal clock: TIMx_Counter_CLK = TIM_CLK / (PSC + 1) If external clock mode2: TIMx_Counter_CLK = ETR_CLK / ((ETR_PSC)*(PSC + 1)) If external clock mode1: TIMx_Counter_CLK = TIx_CLK/(PSC + 1) – if ETRF used as clock source: TRGI_CLK = ETR_CLK / ETR_PSC – if TI1FP1 used as clock source: TRGI_CLK = TI1_CLK / TI1_PSC – if TI2FP2 used as clock source: TRGI_CLK = TI2_CLK / TI2_PSC – if TI1_ED used as clock source: TRGI_CLK = TI1_ED_CLK – if ITRx used as clock source: TRGI_CLK = ITRx_CLK Timer output compare active/inactive delay computation CCx_delay = CCRx /TIMx_Counter_CLK If internal clock: TIMx_Counter_CLK = TIM_CLK / (PSC + 1) If external clock mode2: TIMx_Counter_CLK = ETR_CLK / ((ETR_PSC)*(PSC + 1)) If external clock mode1: TIMx_Counter_CLK = TIx_CLK/(PSC + 1) – if ETRF used as clock source: TRGI_CLK = ETR_CLK / ETR_PSC – if TI1FP1 used as clock source: TRGI_CLK = TI1_CLK / TI1_PSC – if TI2FP2 used as clock source: TRGI_CLK = TI2_CLK / TI2_PSC – if TI1_ED used as clock source: TRGI_CLK = TI1_ED_CLK – if ITRx used as clock source: TRGI_CLK = ITRx_CLK For more details on using the timer in this mode, refer to the examples provided in the STM32xx standard peripheral libraries, in the /Project/STM32xx_StdPeriph_Examples/ TIM/OC_Toggle, /OCActive and /OCInactive folders. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |