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

    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)

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

  3. #3
    Join Date
    Apr 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    This graph...
    Correct?
    Attached Images Attached Images  

  4. #4
    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'.

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

  6. #6
    Join Date
    Apr 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    I've tried the circuit with the Crystal (4MHz), everything seems to be the same...

    Attached is the circuit diagram, could someone please check it to see what I am doing wrong please???

    The LED blinks if the serial port is not connected to the computer.
    The LED doesn't blink if the serial port IS connected to the computer, so I'm thinking its a grounding problem. Any suggestions?

    This is the code that I am testing with:

    Code:
    PORTA = 0
    PORTB = 0
    CMCON = 7 'Set 16F628A Comparators off
    
    Include "modedefs.bas"
    light var PORTB.0
    Low light
    
    Start:
    Toggle light
    SerOut PORTA.1,N300,["Pulse",10,13]
    Pause 100
    goto Start
    
    High light
    end
    Attached Images Attached Images  

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by masosi View Post
    I've tried the circuit with the Crystal (4MHz), everything seems to be the same...

    Attached is the circuit diagram, could someone please check it to see what I am doing wrong please???

    The LED blinks if the serial port is not connected to the computer.
    The LED doesn't blink if the serial port IS connected to the computer, so I'm thinking its a grounding problem. Any suggestions?

    This is the code that I am testing with:

    Code:
    PORTA = 0
    PORTB = 0
    CMCON = 7 'Set 16F628A Comparators off
    
    Include "modedefs.bas"
    light var PORTB.0
    Low light
    
    Start:
    Toggle light
    SerOut PORTA.1,N300,["Pulse",10,13]
    Pause 100
    goto Start
    
    High light
    end
    Ya, there's a few things wrong with that.
    Check your little green book...page 131, 136, 139, 144. You might find your problem/answer there.

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