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

895132-UL 参数 Datasheet PDF下载

895132-UL图片预览
型号: 895132-UL
PDF下载: 下载PDF文件 查看货源
内容描述: USB微控制器,带有64K字节Flash存储器 [USB Microcontroller with 64K Bytes Flash Memory]
分类和应用: 存储微控制器
文件页数/大小: 182 页 / 1660 K
品牌: ATMEL [ ATMEL ]
 浏览型号895132-UL的Datasheet PDF文件第46页浏览型号895132-UL的Datasheet PDF文件第47页浏览型号895132-UL的Datasheet PDF文件第48页浏览型号895132-UL的Datasheet PDF文件第49页浏览型号895132-UL的Datasheet PDF文件第51页浏览型号895132-UL的Datasheet PDF文件第52页浏览型号895132-UL的Datasheet PDF文件第53页浏览型号895132-UL的Datasheet PDF文件第54页  
Figure 12-1. Timer 0 and Timer 1 Clock Controller and Symbols  
PER  
CLOCK  
PER  
CLOCK  
0
0
1
Timer 0 Clock  
Timer 1 Clock  
1
OSC  
CLOCK  
OSC  
CLOCK  
÷
2
÷ 2  
T0X2  
CKCON.1  
T1X2  
CKCON.2  
TIM0  
CLOCK  
TIM1  
CLOCK  
Timer 0 Clock Symbol  
Timer 1 Clock Symbol  
12.3 Timer 0  
Timer 0 functions as either a Timer or event Counter in four modes of operation. Figure 12-2  
through Figure 12-8 show the logical configuration of each mode.  
Timer 0 is controlled by the four lower Bits of TMOD register (see Table 41) and Bits 0, 1, 4 and  
5 of TCON register (see Table 40). TMOD register selects the method of Timer gating (GATE0),  
Timer or Counter operation (C/T0#) and mode of operation (M10 and M00). TCON register pro-  
vides Timer 0 control functions: overflow flag (TF0), run control bit (TR0), interrupt flag (IE0) and  
interrupt type control bit (IT0).  
For normal Timer operation (GATE0 = 0), setting TR0 allows TL0 to be incremented by the  
selected input. Setting GATE0 and TR0 allows external pin INT0 to control Timer operation.  
Timer 0 overflow (count rolls over from all 1s to all 0s) sets TF0 flag generating an interrupt  
request.  
It is important to stop Timer/Counter before changing mode.  
12.3.1  
Mode 0 (13-bit Timer)  
Mode 0 configures Timer 0 as a 13-bit Timer which is set up as an 8-bit Timer (TH0 register) with  
a modulo 32 prescaler implemented with the lower five Bits of TL0 register (see Figure 12-2).  
The upper three Bits of TL0 register are indeterminate and should be ignored. Prescaler over-  
flow increments TH0 register. Figure 12-3 gives the overflow period calculation formula.  
Figure 12-2. Timer/Counter x (x = 0 or 1) in Mode 0  
TIMx  
CLOCK  
Timer x  
Interrupt  
Request  
÷ 6  
0
1
TLx  
(5 Bits)  
THx  
(8 Bits)  
Overflow  
TFx  
TCON Reg  
Tx  
C/Tx#  
TMOD Reg  
INTx  
GATEx  
TMOD Reg  
TRx  
TCON Reg  
Figure 12-3. Mode 0 Overflow Period Formula  
6
(16384 – (THx, TLx))  
FTIMx  
TFxPER  
=
50  
AT89C5132  
4173E–USB–09/07  
 复制成功!