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

MPC82G516AF 参数 Datasheet PDF下载

MPC82G516AF图片预览
型号: MPC82G516AF
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-bit microcontroller]
分类和应用: 微控制器
文件页数/大小: 144 页 / 1527 K
品牌: MEGAWIN [ MEGAWIN TECHNOLOGY CO., LTD ]
 浏览型号MPC82G516AF的Datasheet PDF文件第40页浏览型号MPC82G516AF的Datasheet PDF文件第41页浏览型号MPC82G516AF的Datasheet PDF文件第42页浏览型号MPC82G516AF的Datasheet PDF文件第43页浏览型号MPC82G516AF的Datasheet PDF文件第45页浏览型号MPC82G516AF的Datasheet PDF文件第46页浏览型号MPC82G516AF的Datasheet PDF文件第47页浏览型号MPC82G516AF的Datasheet PDF文件第48页  
11.1.5 Programmable Clock-Out from Timer 0  
Using Timer 0, a 50% duty cycle clock can be programmed to come out from pin T0CKO (P3.4).  
The clock-out frequency depends on the system clock frequency (Fosc) and the reload value filled in the TH0  
register, as shown in the following formula:  
Fosc  
Clock-Out Frequency =  
n x (256-TH0)  
Where,  
n=24 if T0X12=0,  
n=2 if T0X12=1.  
Timer 0 is programmed for the clock-out mode as follows:  
• Set T0CKOE bit in AUXR2 register.  
• Clear C/-T bit of Timer 0 in TMOD register.  
• Clear GATE bit of Timer 0 in TMOD register.  
• Determine the 8-bit reload value from the formula and enter it in TH0 register.  
• Enter an 8-bit initial value in TL0 register. It should be the same as the reload value.  
• Start the timer by setting the run control bit TR0 in TCON register.  
Figure 11-5. Programmable Clock-Out from Timer 0  
Fosc  
12  
"0"  
"1"  
D
Clock-Out  
(P3.4)  
Q
Q
"0"  
Overflow  
TL0  
(8 Bits)  
CK  
T0X12  
C/-T=0  
Load  
TR0  
TH0  
(8 Bits)  
GATE=0  
/INT1 pin  
* Fosc is the system clock.  
MEGAWIN  
MPC82G516A Data Sheet  
44  
 
 复制成功!