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

C8051F502-IM 参数 Datasheet PDF下载

C8051F502-IM图片预览
型号: C8051F502-IM
PDF下载: 下载PDF文件 查看货源
内容描述: 混合信号ISP功能的Flash MCU系列 [Mixed Signal ISP Flash MCU Family]
分类和应用: 微控制器和处理器外围集成电路PC时钟
文件页数/大小: 312 页 / 2813 K
品牌: SILICON [ SILICON ]
 浏览型号C8051F502-IM的Datasheet PDF文件第278页浏览型号C8051F502-IM的Datasheet PDF文件第279页浏览型号C8051F502-IM的Datasheet PDF文件第280页浏览型号C8051F502-IM的Datasheet PDF文件第281页浏览型号C8051F502-IM的Datasheet PDF文件第283页浏览型号C8051F502-IM的Datasheet PDF文件第284页浏览型号C8051F502-IM的Datasheet PDF文件第285页浏览型号C8051F502-IM的Datasheet PDF文件第286页  
C8051F50x-F51x  
T3MH  
T3XCLK TMR3H Clock Source  
T3ML  
T3XCLK TMR3L 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 TF3H bit is set when TMR3H overflows from 0xFF to 0x00; the TF3L bit is set when TMR3L overflows  
from 0xFF to 0x00. When Timer 3 interrupts are enabled, an interrupt is generated each time TMR3H over-  
flows. If Timer 3 interrupts are enabled and TF3LEN (TMR3CN.5) is set, an interrupt is generated each  
time either TMR3L or TMR3H overflows. When TF3LEN is enabled, software must check the TF3H and  
TF3L flags to determine the source of the Timer 3 interrupt. The TF3H and TF3L 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  
T3XCLK  
M MM M MM A A  
Reload  
TMR3RLH  
To SMBus  
H L H L  
1 0  
SYSCLK / 12  
0
1
0
External Clock / 8  
TCLK  
TF3H  
TF3L  
TMR3H  
Interrupt  
TR3  
1
TF3LEN  
TF3CEN  
T3SPLIT  
TR3  
Reload  
TMR3RLL  
T3XCLK  
SYSCLK  
1
0
To ADC,  
SMBus  
TCLK  
TMR3L  
Figure 26.8. Timer 3 8-Bit Mode Block Diagram  
26.3.3. External Oscillator Capture Mode  
Capture Mode allows the external oscillator to be measured against the system clock. Timer 3 can be  
clocked from the system clock, or the system clock divided by 12, depending on the T3ML (CKCON.6),  
and T3XCLK bits. When a capture event is generated, the contents of Timer 3 (TMR3H:TMR3L) are  
loaded into the Timer 3 reload registers (TMR3RLH:TMR3RLL) and the TF3H flag is set. A capture event  
is generated by the falling edge of the clock source being measured, which is the external oscillator/8. By  
recording the difference between two successive timer capture values, the external oscillator frequency  
can be determined with respect to the Timer 3 clock. The Timer 3 clock should be much faster than the  
capture clock to achieve an accurate reading. Timer 3 should be in 16-bit auto-reload mode when using  
Capture Mode.  
If the SYSCLK is 24 MHz and the difference between two successive captures is 5861, then the external  
clock frequency is as follows:  
24 MHz/(5861/8) = 0.032754 MHz or 32.754 kHz  
This mode allows software to determine the external oscillator frequency when an RC network or capacitor  
is used to generate the clock source.  
282  
Rev. 1.1  
 复制成功!