| 전자부품 데이터시트 검색엔진 |
|
ST7262 데이터시트(PDF) 47 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST7262 데이터시트(HTML) 47 Page - STMicroelectronics |
|
47 / 139 page ![]() ST7262 47/139 PWM AUTO-RELOAD TIMER (Cont’d) Output compare and Time base interrupt On overflow, the OVF flag of the ARTCSR register is set and an overflow interrupt request is generat- ed if the overflow interrupt enable bit, OIE, in the ARTCSR register, is set. The OVF flag must be re- set by the user software. This interrupt can be used as a time base in the application. External clock and event detector mode Using the fEXT external prescaler input clock, the auto-reload timer can be used as an external clock event detector. In this mode, the ARTARR register is used to select the nEVENT number of events to be counted before setting the OVF flag. nEVENT = 256 - ARTARR When entering HALT mode while fEXT is selected, all the timer control registers are frozen but the counter continues to increment. If the OIE bit is set, the next overflow of the counter will generate an interrupt which wakes up the MCU. Caution: If HALT mode is used in the application, prior to executing the HALT instruction, the coun- ter must be disabled by clearing the TCE bit in the ARTCSR register to avoid spurious counter incre- ments. Figure 35. External Event Detector Example (3 counts) COUNTER t FDh FEh FFh FDh OVF ARTCSR READ INTERRUPT ARTARR=FDh fEXT=fCOUNTER FEh FFh FDh IF OIE=1 INTERRUPT IF OIE=1 ARTCSR READ |
|
링크 URL |
| 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 |