PC to EUART on pic 16F688


Results 1 to 11 of 11

Threaded View

  1. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by docaberle View Post
    I'm using the internal oscillator at 4MHz and running at 2400 baud.
    That's most likely your problem right there. Go with external crystal, resonator, oscillator, something...
    But since you said you're having overrun errors, look at the 'F688 datasheet in the OSCTUN section and dial down your internal clock a couple of notches and see what happens.
    Problem is, this will only work at that particular battery voltage, that temperature, that day of the week, when the moon is in that particular phase, etc.etc.etc...
    Just save the trouble and go with an external clock source...
    Could it be something else causing the problem?
    Sure...trying to SEROUT while at the same time receiving serial data in the hardware...bad idea... I'd also be willing to bet if you took all of those SEROUT statement and made it so that each SEROUT statement only did one, two, maybe three characters at a time, you're overrun errors might go away, since it'll give the program/hardware a chance to interrupt and empty out the incoming hardware serial buffer.
    Last edited by skimask; - 20th October 2008 at 20:46.

Similar Threads

  1. Replies: 24
    Last Post: - 2nd October 2017, 11:35
  2. Send data PIC to PC
    By konter in forum Off Topic
    Replies: 6
    Last Post: - 25th December 2009, 22:04
  3. Replies: 67
    Last Post: - 8th December 2009, 02:27
  4. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  5. Replies: 11
    Last Post: - 12th July 2008, 02:36

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