| 数据搜索系统,热门电子元器件搜索 |
|
STR720 数据表(PDF) 318 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STR720 数据表(HTML) 318 Page - STMicroelectronics |
|
318 / 401 page ![]() STR720 - EXTENDED FUNCTION TIMER (EFT) 318/401 21.3.5 Forced Compare Mode In this section the index “i” may represent A or B. Bits 11:8 of CR1 register and bits 7:0 of CR2 are used (Refer to Section 21.4 for detailed Register Description). When the FOLVA bit is set, the OLVLA bit is copied to the OCMPA pin if PWM and OPM are both cleared. When FOLVB bit is set, the OLVLB bit is copied to the OCMPB pin. The OLVLi bit has to be toggled in order to toggle the OCMPi pin when it is enabled (OCiE bit=1). Note – When FOLVi is set, no interrupt request is generated. – Nevertheless the OCFi bit can be set if OCiR = Counter, an interrupt can be generated if enabled. – Input capture function works in Forced Compare mode. 21.3.6 One Pulse Mode One Pulse mode enables the generation of a pulse when an external event occurs. This mode is selected via the OPM bit in the CR1 register. The one pulse mode uses the Input Capture A function (trigger event) and the Output Compare A function. 21.3.6.1 Procedure To use one pulse mode, select the following in the CR1 register: – Using the OLVLA bit, select the level to be applied to the OCMPA pin after the pulse. – Using the OLVLB bit, select the level to be applied to the OCMPA pin during the pulse. – Select the edge of the active transition on the ICAPA pin with the IEDGA bit. – Set the OCAE bit, the OCMPA pin is then dedicated to the Output Compare A function. – Set the OPM bit. – Select the timer clock (ECKGEN) and the prescaler division factor (CC7-CC0). Load the OCAR register with the value corresponding to the length of the pulse (see the formula in next Section 21.3.7.1). 1 |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |