Let's put it this way - If the world was flat, you're sailing right on the edge.
Use a crystal or resonator... you've been lucky so far... but it's just run out!
Let's put it this way - If the world was flat, you're sailing right on the edge.
Use a crystal or resonator... you've been lucky so far... but it's just run out!
Thank You. The PCB is so full and OSC1 and OSC2 are being used, maybe it's time for a bigger chip and new PCB layout.
And a Crystal or Resonator!
A lot of it depends on your volume, too. For just a couple boards you use yourself, just manually tweak the osctune register to adjust the oscillator. (Assuming they will see a consistent temperature.)
If you are shipping them out, and if you have code space, you could put in an oscillator calibration routine. You'll need a reference, though--either an on-board crystal, RTC, or incoming serial data.
You also might be able to "guess" at the osctune value by reading the pic errors in reception. Look it up in the datasheet.
But the easiest is to add a real crystal.
... and as long as the PIC has a OSCTUNE register
Still not a fan of internal OSC for serial communication myself... even if the more recent PIC show a better accuracy... it's still a RC OSC.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks