| 数据搜索系统,热门电子元器件搜索 |
|
ZUSBOPTSC01ZAC 数据表(PDF) 116 Page - Zilog, Inc. |
|
|
|||||||||||||||||||||||||||||
ZUSBOPTSC01ZAC 数据表(HTML) 116 Page - Zilog, Inc. |
|
116 / 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 94 d. If using the Timer Output alternate function, set the initial output level (High or Low) using the TPOL bit. e. Set the interrupt mode. 2. Write to the Timer High and Low Byte registers to set the starting count value. 3. Write to the Timer Reload High and Low Byte registers to set the reload value. 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 (Start Value is typically = 1): Triggered One-Shot Mode In TRIGGERED ONE-SHOT mode, the timer operates as follows: 1. The Timer idles until a trigger is received. The timer trigger is taken from the Timer Input pin. The TPOL bit in the Timer Control 1 Register selects whether the trigger occurs on the rising edge or the falling edge of the Timer Input signal. 2. Following the trigger event, the timer counts system clocks up to the 16-bit reload value stored in the Timer Reload High and Low Byte registers. 3. Upon reaching the reload value, the timer outputs a pulse on the Timer Output pin, generates an interrupt, and resets the count value in the Timer High and Low Byte reg- isters to 0001h. The duration of the output pulse is a single system clock. The TPOL bit also sets the polarity of the output pulse. 4. The timer idles until the next trigger event. Trigger events that occur while the timer is responding to a previous trigger are ignored. The steps for configuring Timer 0 in TRIGGERED ONE-SHOT mode and initiating oper- ation are as follows: 1. Write to the Timer Control registers to: a. Disable the timer. b. Configure the timer for TRIGGERED ONE-SHOT mode. One-Shot Mode Time-Out Period(s) = (Reload Value – Start Value + 1) x Prescaler System Clock Frequency (Hz) |
|
链接网址 |
| 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 |