完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我使用PIC16LF1823 PIC微控制器,我需要在内部振荡器和外部高速振荡器之间来回切换。要检查内部振荡器是稳定的,但我不知道如何验证我的高速外部振荡器已经准备好了。我认为这是因为我让外部振荡器运行之前准备好。任何建议。NS将不胜感激…
以上来自于百度翻译 以下为原文 I am using a PIC16LF1823 PIC microcontroller and I need to switch back and forth between the internal oscillator and my external high speed oscillator. There are flags to examine to determine when the internal oscillator is stable but I don't know how to verify that my high speed external oscillator is ready. My program is behaving rather erratically and I think it is because I am letting the external oscillator run before it is ready. Any suggestions would be greatly appreciated... |
|
相关推荐
4个回答
|
|
数据表(PG 64)如下:“当在时钟源之间切换时,需要延迟以允许新时钟稳定。这些振荡器延迟如表5-1所示。“从表5-1开始,在继续执行程序之前,我建议2US延迟。除非你使用PLL,在这种情况下,我建议2MS。你也可以尝试使用故障安全时钟监视器。如果你的水晶不能正常运转,这可能会检测到它。祝你好运。
以上来自于百度翻译 以下为原文 The datasheet (pg 64) reads as follows: "When switching between clock sources, a delay is required to allow the new clock to stabilize. These oscillator delays are shown in Table 5-1." From table 5-1, I would suggest a 2uS delay before continuing with program execution. unless you are using the PLL, in which case I would suggest 2mS. You might also try using the fail-safe clock monitor. If your crystal is not operating properly, this might detect it. Good luck. |
|
|
|
当使用外部振荡器(HS、LP等)时,你使用什么模式?是晶体(使用PIC振荡器)还是外部自激振荡器?
以上来自于百度翻译 以下为原文 What mode are you running in when using the external oscillator (HS, LP, etc)? Is it a crystal (which uses the pic oscillator) or an external self-contained oscillator? |
|
|
|
OST在EC模式下被禁用,但可能会从EXT振荡器插入固定延迟到时钟开关,以允许外部振荡器稳定。OST可与HS,XT和LP模式的运作。单端模式的HS可能工作,但我认为它需要其他振荡器引脚是开放的。这样做似乎有风险。
以上来自于百度翻译 以下为原文 The OST is disabled in EC mode but it might be possible to insert a fixed delay from ext oscillator turn on to clock switch to allow the external oscillator to be stable. OST is available with HS, XT and LP mode of operation. HS in single ended mode might work but I think it would require the other oscillator pin to be open. This seems risky to run this way. |
|
|
|
嗨,如上所述,在使用内部PLL的情况下,PLL的锁定时间将是振荡器稳定时间的主要延迟贡献者。
以上来自于百度翻译 以下为原文 Hi, As stated above, in case you use the internal PLL, the lock time of the PLL will be the major delay contributor compared to the oscillator stabilization time. Regards |
|
|
|
只有小组成员才能发言,加入小组>>
5142 浏览 9 评论
1990 浏览 8 评论
1918 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3159 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2215 浏览 5 评论
711浏览 1评论
598浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
482浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
611浏览 0评论
509浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-10 16:24 , Processed in 1.179239 second(s), Total 51, Slave 46 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号