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

C8051F818-GU 参数 Datasheet PDF下载

C8051F818-GU图片预览
型号: C8051F818-GU
PDF下载: 下载PDF文件 查看货源
内容描述: 混合信号ISP功能的Flash MCU系列 [Mixed Signal ISP Flash MCU Family]
分类和应用:
文件页数/大小: 250 页 / 1303 K
品牌: SILICON [ SILICON ]
 浏览型号C8051F818-GU的Datasheet PDF文件第216页浏览型号C8051F818-GU的Datasheet PDF文件第217页浏览型号C8051F818-GU的Datasheet PDF文件第218页浏览型号C8051F818-GU的Datasheet PDF文件第219页浏览型号C8051F818-GU的Datasheet PDF文件第221页浏览型号C8051F818-GU的Datasheet PDF文件第222页浏览型号C8051F818-GU的Datasheet PDF文件第223页浏览型号C8051F818-GU的Datasheet PDF文件第224页  
C8051F80x-83x  
28.2.2. 8-bit Timers with Auto-Reload  
When T2SPLIT is set, Timer 2 operates as two 8-bit timers (TMR2H and TMR2L). Both 8-bit timers oper-  
ate in auto-reload mode as shown in Figure 28.5. TMR2RLL holds the reload value for TMR2L; TMR2RLH  
holds the reload value for TMR2H. The TR2 bit in TMR2CN handles the run control for TMR2H. TMR2L is  
always running when configured for 8-bit Mode. Timer 2 can also be used in capture mode to capture rising  
edges of the Comparator 0 output.  
Each 8-bit timer may be configured to use SYSCLK, SYSCLK divided by 12, or the external oscillator clock  
source divided by 8. The Timer 2 Clock Select bits (T2MH and T2ML in CKCON) select either SYSCLK or  
the clock defined by the Timer 2 External Clock Select bit (T2XCLK in TMR2CN), as follows:  
T2MH  
T2XCLK TMR2H Clock Source  
T2ML  
T2XCLK TMR2L Clock Source  
0
0
1
0
1
X
SYSCLK / 12  
External Clock / 8  
SYSCLK  
0
0
1
0
1
X
SYSCLK / 12  
External Clock / 8  
SYSCLK  
The TF2H bit is set when TMR2H overflows from 0xFF to 0x00; the TF2L bit is set when TMR2L overflows  
from 0xFF to 0x00. When Timer 2 interrupts are enabled (IE.5), an interrupt is generated each time  
TMR2H overflows. If Timer 2 interrupts are enabled and TF2LEN (TMR2CN.5) is set, an interrupt is gener-  
ated each time either TMR2L or TMR2H overflows. When TF2LEN is enabled, software must check the  
TF2H and TF2L flags to determine the source of the Timer 2 interrupt. The TF2H and TF2L interrupt flags  
are not cleared by hardware and must be manually cleared by software.  
CKCON  
T T T T T T S S  
3 3 2 2 1 0 C C  
T2XCLK  
M M M M M M A A  
Reload  
TMR2RLH  
To SMBus  
H L H L  
1 0  
SYSCLK / 12  
0
1
0
External Clock / 8  
TCLK  
TF2H  
TF2L  
TMR2H  
Interrupt  
TR2  
1
TF2LEN  
TF2CEN  
T2SPLIT  
TR2  
Reload  
TMR2RLL  
T2XCLK  
SYSCLK  
1
0
To ADC,  
SMBus  
TCLK  
TMR2L  
Figure 28.5. Timer 2 8-Bit Mode Block Diagram  
220  
Rev. 1.0