Serial differences between f628 and f628A


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2009
    Location
    Wylie TX
    Posts
    3

    Default Serial differences between f628 and f628A

    I have used a f628 for years without problems sending 9600bps data, when I switched to a f628A I got data errors. So I went back to the f628. All is well but I know the non A part will get harder to get as time goes on. Do any of you have any helpfull ideas. The serial in and out pins are RA0 and RA1, CMCON = 7 is in the first few lines.
    Thanking you in advance

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358

    Default

    Are you using a Crystal or Resonator - or are you relying on the Internal Oscillator?

  3. #3
    Join Date
    Jan 2009
    Location
    Wylie TX
    Posts
    3

    Default

    The internal osc.

  4. #4
    Join Date
    Jul 2003
    Posts
    2,358

    Default

    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!

  5. #5
    Join Date
    Jan 2009
    Location
    Wylie TX
    Posts
    3

    Default

    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.

  6. #6
    Join Date
    Jul 2003
    Posts
    2,358

    Default

    And a Crystal or Resonator!

  7. #7
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271

    Default

    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.

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

    Default

    ... 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.

Similar Threads

  1. Pic 16 F628A not working
    By turkuaz in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 17th March 2009, 12:26
  2. Pic 16 F628A pulsein Problem
    By turkuaz in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 27th February 2009, 10:46

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