在线时间0 小时
UID423191
注册时间2013-3-25
NXP金币0
该用户从未签到
注册会员

- 积分
- 51
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2013-7-25 15:05:35
|
显示全部楼层
RE:KL25--FEI模式切换到FBI模式出错
参考手册里面是这么写的:
To change from FEI clock mode to FBI clock mode, follow this procedure:
1. Change C1[CLKS] bits in C1 register to 2'b01 so that the internal reference clock is selected as the system clock source.
2. Wait for S[CLKST] bits in the MCG status register to change to 2'b01, indicating that the internal reference clock has been appropriately selected.
3. Write to the C2 register to determine the IRCS output (IRCSCLK) frequency range.
• By default, with C2[IRCS] cleared to 0, the IRCS selected output clock is the slow internal reference clock (32 kHz IRC). If the faster IRC is desired, set C2[IRCS] bit to 1 for a IRCS clock derived from the 4 MHz IRC source.
可这么做从我目前的测试来看,好像不可能做得到,当C2的IRCS位为0的时候,设置C1[CLKS]为2'b01时就出错了!不能选择Slow internal reference clock,是否需要其它设置? |
|