我在PIC24FJ128GA202上使用SoSC来运行RTCC模块,我有一段时间让它稳定。RTCC启动和停止,当它运行时,它不会保持良好的时间(+/-每秒钟一秒!)我使用的是一个IQD 32768千赫石英晶体,它具有12pF负载电容和2pf并联电容。我已经尝试过使用10pF到50pF的电容器,在性能上没有明显的差别。这就是我所看到的:范围显示它在正确的频率附近振荡,但是幅度只有大约300 mV。我有一个探险者板,我把晶体从它上拉下来,WHI。CH给了我更多的信号,但仍然不一致。把一个范围放在探险者板PIM上,我看到它也有非常低的振幅,可能是400毫伏左右,但是它确实有大约1/2伏的偏移量。我没有看到任何抵消我的项目。我尝试打开RTCC输出设置到时钟,但看不到该引脚上的任何活动。这里是我所尝试的:改变电容值。在晶体上增加1M分流电阻器。将晶体从探险者板上切换。打开弱拉O。SoSi引脚。问题:什么是一个良好的晶体和电容器组合这一部分?当振荡器正常工作时,我应该从振荡器中看到什么样的电压和偏移量?我错过了什么????我的其他项目运行良好,包括2个AD转换器输入,2个UART,LCD显示,以及其他各种iOS。如果我能让RTCC做我应该做的,我会是一个快乐的家伙!请帮忙。
以上来自于百度翻译
以下为原文
I'm using the SOSC on the PIC24FJ128GA202 to run the RTCC module and I'm have a heck of a
time getting it to be stable. The RTCC starts and stops, and when it does run it does not keep good time (+/- one second every minute!). I'm using an IQD 32,768 khz quartz crystal, which has a 12pf load capacitance and 2pf shunt capacitance. I've tried using capacitors from 10pf through 50pf for the tank with no noticeable difference in performance.
Here's what I see:
- The scope shows it is oscillating at around the correct frequency, but the amplitude is only about 300mv.
- I have an Explorer board, and I pulled the crystal off of that, which gives me slightly more signal, but is still inconsistent.
- Putting a scope on the Explorer board PIM, I see that it also has very low amplitude, maybe 400mv or so, but it does have about a 1/2 volt offset. I do not see any offset on my project.
- I tried turning on the RTCC Output set to the Clock, but see no activity on that pin at all.
Here's what I've tried:
- Changing capacitor values.
- Adding a 1m shunt resistor across the crystal.
- Swapping the crystal from the Explorer board.
- Turning on the Weak Pull Up on the SOCSI pin.
Questions:
- What's a good crystal and capacitor combo for this part?
- What sort of voltage and offset should I see from the oscillator when it's working properly?
- What am I missing here???
The rest of my project is running well, including 2 AD converter inputs, 2 UARTS, LCD display, and various other IOs. If I can get the RTCC to do what it's supposed to I'll be a happy guy! Please HELP.
0