Strange SerOut Problem


Closed Thread
Results 1 to 40 of 40

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    Try using SEROUT2, with a mode # of 3332 (which is optimal). Then try shifting 3332 up and down a bit and see what happens. Eventually you'll hit on a range of numbers that does seem to work. Take the middle one and use it.
    I have tried SerOut2 with the following modes: 3322, 3327, 3332, 3337, 3342 and 3347 (+5 increments).
    And then again with the following modes (inverted): 19706, 19711, 19716, 19721, 19726 and 19731.

    I would have thought I'd get something on the PC, but still nothing. Is this range too big? or too small? If this doesn't work, the is the resonator really going to fix all this?

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by masosi View Post
    I have tried SerOut2 with the following modes: 3322, 3327, 3332, 3337, 3342 and 3347 (+5 increments).
    And then again with the following modes (inverted): 19706, 19711, 19716, 19721, 19726 and 19731.

    I would have thought I'd get something on the PC, but still nothing. Is this range too big? or too small? If this doesn't work, the is the resonator really going to fix all this?
    Probably....but the main thing would be to put some sort of counter on it, 'scope, freq-meter, anything and write a program to see how fast the clock is really going.

    Failing that, write a program that counts up in seconds. Let it run for a few hours, compare it with a stopwatch and see how far off it is. Maybe it's actually so far out in the weeds that you can't even get into the ball park.

    What happens if you write a program to toggle an LED on and off once per second? Does it actually toggle once per second?

    Did you smoke the PC's serial port? Have the right COM1 port selected, etc.?
    Simple little things...we all know how it goes...but ya never know..could be something stupid that's tripping you up...

  3. #3
    Join Date
    Apr 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    I'll try those ideas soon, thanks.

    Another thought...
    I'm running the 16F628A at 5.0V DC. After looking at the electrical information, it seems that I should be running it at 3.5V. This would run the internal oscillator at a more precise speed. Is this correct?

    Please make sure I'm getting this right.
    5V supply... 3.5V drop across the PIC... Voltage drop of 1.5V... PIC runs at 150mA
    R = V / I
    R = 1.5 / .15
    R = 10 ohms (1/4 watt)

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by masosi View Post
    I'll try those ideas soon, thanks.
    Another thought...
    I'm running the 16F628A at 5.0V DC. After looking at the electrical information, it seems that I should be running it at 3.5V. This would run the internal oscillator at a more precise speed. Is this correct?
    Please make sure I'm getting this right.
    5V supply... 3.5V drop across the PIC... Voltage drop of 1.5V... PIC runs at 150mA
    R = V / I
    R = 1.5 / .15
    R = 10 ohms (1/4 watt)
    What electrical information is telling you to run it at 3.5v?
    If you're talking about parameter F13, that's for 'jitter' not 'accuracy'.
    Last edited by skimask; - 21st April 2007 at 01:56.

  5. #5
    Join Date
    Apr 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    This graph...
    Correct?
    Attached Images Attached Images  

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by masosi View Post
    This graph...
    Correct?
    That -1% @ 5v isn't going to kill your serial.
    Also, it's say 'TYPICAL'...doesn't really mean 'yours'.

  7. #7
    Join Date
    Apr 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    Ah... well thats another desperate idea gone...

    I'll try the timing trials.

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. Serout to serial servo
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 12th August 2009, 16:46
  3. Strange Serout Behaviour
    By bluesmoke in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th August 2009, 04:12
  4. Advice-scrutiny for my serial controller
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th December 2008, 17:11
  5. Replies: 11
    Last Post: - 13th July 2005, 19:26

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