Problem with Serout2 Pic18F4550


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Apr 2010
    Posts
    13


    Did you find this post helpful? Yes | No

    Default Re: Problem with Serout2 Pic18F4550

    Thanks Robert.
    It looks like PBP3 automatically sets the config and it works for every other PIC that I have but 18F4550.
    I tested it with various PICs and I even used a brand new 18F4550 , still getting garbage out of portc.6 .

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,161


    Did you find this post helpful? Yes | No

    Default Re: Problem with Serout2 Pic18F4550

    Did you try setting port C as output?

    TRISC=0

  3. #3
    Join Date
    Apr 2010
    Posts
    13


    Did you find this post helpful? Yes | No

    Default Re: Problem with Serout2 Pic18F4550

    Quote Originally Posted by Demon View Post
    Did you try setting port C as output?

    TRISC=0
    I did no change .
    thanks

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,161


    Did you find this post helpful? Yes | No

    Default Re: Problem with Serout2 Pic18F4550

    Just looking at manual, they have a DEFINE for parity?

    Not sure if this applies to 18F family.

  5. #5
    Join Date
    Apr 2010
    Posts
    13


    Did you find this post helpful? Yes | No

    Default Re: Problem with Serout2 Pic18F4550

    Quote Originally Posted by Demon View Post
    Just looking at manual, they have a DEFINE for parity?

    Not sure if this applies to 18F family.
    I did try that too , I also tried other routines like HSEROUT or Debug with all the Define s required but still no luck.

    I thank you so very much Robert for trying to help me.

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,161


    Did you find this post helpful? Yes | No

    Default Re: Problem with Serout2 Pic18F4550

    Set your DEFINE at 48, regardless of your external oscillator.

    I just saw that in another thread just now.

    EDIT: Right here:
    http://www.picbasic.co.uk/forum/showthread.php?t=13039
    Last edited by Demon; - 22nd January 2012 at 22:53. Reason: Added link

  7. #7
    Join Date
    Apr 2010
    Posts
    13


    Did you find this post helpful? Yes | No

    Default Re: Problem with Serout2 Pic18F4550

    Quote Originally Posted by Demon View Post
    Set your DEFINE at 48, regardless of your external oscillator.

    I just saw that in another thread just now.

    EDIT: Right here:
    http://www.picbasic.co.uk/forum/showthread.php?t=13039
    My goodness , you are a genius . It worked . You are a life saver.
    Thanks ever so much. Robert.

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