Serin Problem 16f819


Closed Thread
Results 1 to 4 of 4

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    You defined a HS osc... it's suppose to be for a XTAL>4MHZ... but it souldn't be the main problem

    OSCCON do nothing here as you're using an external one

    You NEVER EVER tell to disable the LVP mode

    9600 baud @ 4mhz will NEVER work unless you're using the PIC USART or maybe DEBUG in worst case. There's a BIG warning in the fabulous manual about that.

    Code:
    DEFINE SHIFT_PAUSEUS 100
    is useless
    Steve

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

  2. #2
    Join Date
    Mar 2007
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    This code was taken from larger code. I just wanted to isolate the serin and serout commands. that is why some of the configuration lines are still in the code. What is LVP mode? You say that you cannot run 9600 baud w/ a 4MHz crystal. Would this also apply to serout, because I have had no problems with that at all.

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


    Did you find this post helpful? Yes | No

    Default

    Don't use SERIN/SEROUT/SERIN2/SEROUT2 @ 9600 bauds @ 4MHZ. DEBUG may work better. BUT HSERIN/HSEROUT will works a treat... on the right pins.

    Use the PicMultiCalc to generate the right HSERIN/HSEROUT DEFINEs

    http://www.mister-e.org/pages/utilitiespag.html

    LVP mode HAVE TO BE DISABLED.
    Steve

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

Similar Threads

  1. Serin Problem with 12F629/PBP
    By Flyingms in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 9th March 2009, 15:59
  2. Serin serout problem
    By lerameur in forum mel PIC BASIC Pro
    Replies: 336
    Last Post: - 6th February 2007, 05:25
  3. Problem with PBP interrupt and Serin, please help
    By rgregor in forum mel PIC BASIC
    Replies: 0
    Last Post: - 22nd August 2006, 20:02
  4. serout and serin problem
    By nicolelawsc in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th April 2006, 20:44
  5. 16F877A serin problem with baud rate 19200
    By leemin in forum Serial
    Replies: 1
    Last Post: - 31st July 2005, 10:45

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