PIC12F675, accuracy of baud rate with Internal Oscillator


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    The internal oscillator is just not a good choice for anything timing cricital. It's an RC oscillator, and the frequency will change as temperature, humidity, and several other factors change.

    If you need reliable serial communications use an external oscillator.

    I have used various PIC's in serial applications with the internal osc, and it does work, but it's never been reliable under varying conditions with the internal RC oscillator.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  2. #2
    Chris Mayhew's Avatar
    Chris Mayhew Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce
    The internal oscillator is just not a good choice for anything timing cricital. It's an RC oscillator, and the frequency will change as temperature, humidity, and several other factors change.

    If you need reliable serial communications use an external oscillator.

    I have used various PIC's in serial applications with the internal osc, and it does work, but it's never been reliable under varying conditions with the internal RC oscillator.
    Hi Bruce

    Thanks for your feedback.

    As I don't have enough I/O's to add an XTAL I think an alternative solution might be to reconfigure the hardware and use SHIFTOUT. I have looked, but can find any info that says it can't be done and since a PIC can send SEROUT direct over a cable (I'll be using about 2 metres) I'm assuming the same would apply to SHIFTOUT (putting in some current limiting resistors).

    Another alternative might be to use PULSOUT and COUNT but that could get a bit messy.....

    I should have also pointed out that I was intending to send 1 to 3 bytes of data every 10 to 15 seconds between 2 PIC's over about 2 metres of cable. One PIC would be potted and put into a water tank, while the other would be in free air. The one in free air would certainly be subject to wide temp changes. This would be even more of a reason NOT to use SEROUT2.

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    by the amount of data you send, you can use a low baudrate, let's say 300 baud and should be fair enough with INTRC at almost any temperature.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. A Serial GLCD 128x64 Simple Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 8th March 2010, 20:58
  2. PIC 18f1220 EUSART Baud Rate Cache Problem
    By wklose99 in forum Off Topic
    Replies: 3
    Last Post: - 15th April 2008, 00:39
  3. PIC18F4620 Using the Internal Oscillator
    By kiwipiper in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd October 2007, 08:07
  4. Auto Baud Rate Detection
    By mytekcontrols in forum Serial
    Replies: 10
    Last Post: - 31st October 2005, 02:17
  5. Baud Rate and Timing Calculator
    By picnaut in forum General
    Replies: 3
    Last Post: - 23rd January 2004, 16:48

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts