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

68HC908RFRK2 参数 Datasheet PDF下载

68HC908RFRK2图片预览
型号: 68HC908RFRK2
PDF下载: 下载PDF文件 查看货源
内容描述: 超前信息 [Advance Information]
分类和应用:
文件页数/大小: 250 页 / 2075 K
品牌: FREESCALE [ Freescale ]
 浏览型号68HC908RFRK2的Datasheet PDF文件第119页浏览型号68HC908RFRK2的Datasheet PDF文件第120页浏览型号68HC908RFRK2的Datasheet PDF文件第121页浏览型号68HC908RFRK2的Datasheet PDF文件第122页浏览型号68HC908RFRK2的Datasheet PDF文件第124页浏览型号68HC908RFRK2的Datasheet PDF文件第125页浏览型号68HC908RFRK2的Datasheet PDF文件第126页浏览型号68HC908RFRK2的Datasheet PDF文件第127页  
Freescale Semiconductor, Inc.  
Internal Clock Generator Module (ICG)  
Usage Notes  
8.5.1 Switching Clock Sources  
Switching from one clock source to another requires both clock sources  
to be enabled and stable. A simple flow requires:  
1. Enable desired clock source  
2. Wait for it to become stable  
3. Switch clocks  
4. Disable previous clock source  
The key point to remember in this flow is that the clock source cannot be  
switched (CS cannot be written) unless the desired clock is on and  
stable.  
A short assembly code example of how to employ this flow is shown in  
Figure 8-7. This code is for illustrative purposes only and does not  
represent valid syntax for any particular assembler.  
;Clock Switching Code Example  
;This code switches from Internal to External clock  
;Clock Monitor and interrupts are not enabled  
;Mask for CS, ECGON, ECGS  
;If switching from External to Internal, mask is $0C.  
;Other code here, such as writing the COP, since ECGS may  
;take some time to set  
start lda  
#$13  
**  
loop  
**  
sta  
icgcr  
;Try to set CS, ECGON and clear ICGON. ICGON will not  
;clear until CS is set, and CS will not set until  
;ECGON and ECGS are set.  
cmpa  
bne  
icgcr  
loop  
;Check to see if ECGS set, then CS set, then ICGON clear  
;Keep looping until ICGON is clear.  
Figure 8-7. Code Example for Switching Clock Sources  
MC68HC908RFRK2  
MOTOROLA  
AdvanceInformation  
123  
Internal Clock Generator Module (ICG)  
For More Information On This Product,  
Go to: www.freescale.com  
 
 
 复制成功!