欢迎访问ic37.com |
会员登录 免费注册
发布采购

Z8F1602AR020EC 参数 Datasheet PDF下载

Z8F1602AR020EC图片预览
型号: Z8F1602AR020EC
PDF下载: 下载PDF文件 查看货源
内容描述: Z8喝采微控制器与闪存和10位A / D转换器 [Z8 Encore Microcontrollers with Flash Memory and 10-Bit A/D Converter]
分类和应用: 转换器闪存微控制器和处理器外围集成电路时钟
文件页数/大小: 246 页 / 1767 K
品牌: ZILOG [ ZILOG, INC. ]
 浏览型号Z8F1602AR020EC的Datasheet PDF文件第79页浏览型号Z8F1602AR020EC的Datasheet PDF文件第80页浏览型号Z8F1602AR020EC的Datasheet PDF文件第81页浏览型号Z8F1602AR020EC的Datasheet PDF文件第82页浏览型号Z8F1602AR020EC的Datasheet PDF文件第84页浏览型号Z8F1602AR020EC的Datasheet PDF文件第85页浏览型号Z8F1602AR020EC的Datasheet PDF文件第86页浏览型号Z8F1602AR020EC的Datasheet PDF文件第87页  
Z8F640x/Z8F480x/Z8F320x/Z8F240x/Z8F160x  
Z8 Encore!®  
65  
Configure the timer for Gated mode.  
Set the prescale value.  
2. Write to the Timer High and Low Byte registers to set the starting count value. This  
only affects the first pass in Gated mode. After the first timer reset in Gated mode,  
counting always begins at the reset value of 0001H.  
3. Write to the Timer Reload High and Low Byte registers to set the Reload value.  
4. If desired, enable the timer interrupt and set the timer interrupt priority by writing to  
the relevant interrupt registers.  
5. Configure the associated GPIO port pin for the Timer Input alternate function.  
6. Write to the Timer Control register to enable the timer.  
7. Assert the Timer Input signal to initiate the counting.  
Capture/Compare Mode  
In Capture/Compare mode, the timer begins counting on the first external Timer Input  
transition. The desired transition (rising edge or falling edge) is set by the TPOLbit in the  
Timer Control Register. The timer input is the system clock.  
Every subsequent desired transition (after the first) of the Timer Input signal captures the  
current count value. The Capture value is written to the Timer PWM High and Low Byte  
Registers. When the Capture event occurs, an interrupt is generated, the count value in the  
Timer High and Low Byte registers is reset to 0001H, and counting resumes.  
If no Capture event occurs, the timer counts up to the 16-bit Compare value stored in the  
Timer Reload High and Low Byte registers. Upon reaching the Compare value, the timer  
generates an interrupt, the count value in the Timer High and Low Byte registers is reset to  
0001H and counting resumes.  
The steps for configuring a timer for Capture/Compare mode and initiating the count are  
as follows:  
1. Write to the Timer Control register to:  
Disable the timer  
Configure the timer for Capture/Compare mode.  
Set the prescale value.  
Set the Capture edge (rising or falling) for the Timer Input.  
2. Write to the Timer High and Low Byte registers to set the starting count value  
(typically 0001H).  
3. Write to the Timer Reload High and Low Byte registers to set the Compare value.  
4. If desired, enable the timer interrupt and set the timer interrupt priority by writing to  
the relevant interrupt registers.  
PS017610-0404  
Timers  
 复制成功!