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

EZ80F91NAA50SG 参数 Datasheet PDF下载

EZ80F91NAA50SG图片预览
型号: EZ80F91NAA50SG
PDF下载: 下载PDF文件 查看货源
内容描述: [IC 8-BIT, FLASH, 50 MHz, MICROCONTROLLER, PBGA144, LEAD FREE, BGA-144, Microcontroller]
分类和应用: 时钟微控制器外围集成电路
文件页数/大小: 395 页 / 1879 K
品牌: ZILOG [ ZILOG, INC. ]
 浏览型号EZ80F91NAA50SG的Datasheet PDF文件第139页浏览型号EZ80F91NAA50SG的Datasheet PDF文件第140页浏览型号EZ80F91NAA50SG的Datasheet PDF文件第141页浏览型号EZ80F91NAA50SG的Datasheet PDF文件第142页浏览型号EZ80F91NAA50SG的Datasheet PDF文件第144页浏览型号EZ80F91NAA50SG的Datasheet PDF文件第145页浏览型号EZ80F91NAA50SG的Datasheet PDF文件第146页浏览型号EZ80F91NAA50SG的Datasheet PDF文件第147页  
eZ80F91 ASSP  
Product Specification  
118  
Basic Timer Operation  
Basic timer operation is controlled by a timer control register and a programmable reload  
value. The CPU uses the control register to setup the prescaling, the input clock source,  
the end-of-count behavior, and to start the timer. The 16-bit reload value is used to deter-  
mine the duration of the timer’s count before either halting or reloading.  
After choosing a timer period and writing the appropriate values to the reload registers, the  
CPU must set the timer enable bit (TMRx_CTL[TIM_EN]) by allowing the count to  
begin. The reload bit (TMRx_CTL[RLD]) must also be asserted so that the timer counts  
down from the reload value rather than from 0000h. On the system clock cycle, after the  
assertion of the reload bit, the timer loads with the 16-bit reload value and begins counting  
down. The reload bit is automatically cleared after the loading operation. The timer is  
enabled and reloaded on the same cycle; however, the timer does not require disabling to  
reload and reloading is performed at any time. It is also possible to halt the timer by deas-  
serting the timer enable bit and resuming the count at a later time from the same point by  
reasserting the bit.  
Reading the Current Count Value  
The CPU reads the current count value when the timer is running. Because the count is a  
16-bit value, the hardware latches the value of the upper byte into temporary storage when  
the lower byte is read. This value in temporary storage is the value returned when the  
upper byte is read. Therefore, the software must read the lower byte first. If it attempts to  
read the upper byte first, it does not obtain the current upper byte of the count. Instead, it  
obtains the last latched value. This read operation does not affect timer operation.  
Setting Timer Duration  
There are three factors to consider while determining Programmable Reload Timer dura-  
tion: clock frequency, clock divider ratio, and initial count value. Minimum duration of the  
timer is achieved by loading 0001h. Maximum duration is achieved by loading 0000h,  
because the timer first rolls over to FFFFh and then continues counting down to 0000h  
before the end-of-count is signaled. Depending on the TMRx_CTL[CLK_SEL] bits of the  
control register, the clock is either the system clock, or an on-chip RC oscillator output or  
an input from a pin.  
The time-out period of the timer is returned by the following equation:  
Clock Divider Ratio x Reload Value  
Time-Out Period =  
System Clock Frequency  
To calculate the time-out period with the above equation while using an initial value of  
0000h, enter a reload value of 65536 (FFFFh+ 1).  
PS027004-0613  
P R E L I M I N A R Y  
Programmable Reload Timers