| 数据搜索系统,热门电子元器件搜索 |
|
ZUSBOPTSC01ZAC 数据表(PDF) 118 Page - Zilog, Inc. |
|
|
|||||||||||||||||||||||||||||
ZUSBOPTSC01ZAC 数据表(HTML) 118 Page - Zilog, Inc. |
|
118 / 402 page ![]() General-Purpose Timer P R E L I M I N A R Y PS024604-1005 Z8 Encore!® Motor Control Flash MCUs Product Specification 96 d. If using the Timer Output alternate function, set the initial output level (High or Low) via TPOL. 2. Write to the Timer High and Low Byte registers to set the starting count value (usually 0001h ). This setting only affects the first pass in CONTINUOUS mode. After the first timer reload in CONTINUOUS mode, counting begins at the reset value of 0001h. 3. Write to the Timer Reload High and Low Byte registers to set the reload period. 4. If appropriate, enable the timer interrupt and set the timer interrupt priority by writing to the relevant interrupt registers. 5. If using the Timer Output function, configure the associated GPIO port pin for the Timer Output alternate function. 6. Write to the Timer Control 1 Register to enable the timer and initiate counting. The timer period is calculated by the following equation: If an initial starting value other than 0001h is loaded into the Timer High and Low Byte registers, use the ONE-SHOT mode equation to determine the first time-out period. Counter and Comparator Counter Modes In COUNTER mode, the timer counts input transitions from a GPIO port pin. The Timer Input is taken from the associated GPIO port pin. The TPOL bit in the Timer Control 1 Register selects whether the count occurs on the rising edge or the falling edge of the Timer Input signal. In COUNTER mode, the prescaler is disabled. The input frequency of the Timer Input signal must not exceed one-fourth the system clock frequency. In COMPARATOR COUNTER mode, the timer counts output transitions from an analog comparator output. Timer 0 takes its input from the output of the comparator. The TPOL bit in the Timer Control 1 Register selects whether the count occurs on the rising edge or the falling edge of the comparator output signal. In COMPARATOR COUNTER mode, the prescaler is disabled. The frequency of the comparator output signal must not exceed one-fourth the system clock frequency. Continuous Mode Time-Out Period(s) = Reload Value x Prescaler System Clock Frequency (Hz) Caution: Caution: |
|
链接网址 |
| 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 |