Will I EVER get serial communication working ?


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: Will I EVER get serial communication working ?

    Try with max232 and mode T9600.
    Also check if pin 2 is an input... If you use same cable as for PC port, then your Tx should be same as on PC, pin 3.
    If you trying to send data to PC, then you should connect portb.0 to PC pin 2...

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Will I EVER get serial communication working ?

    Read about CCP1CON, section 9 of the data sheet. Turn it off.

    9600 baud can be too fast for 4MHz.

    For testing try sending a string to a terminal. MCS has one built in.

    Use SEROUT2 with an inverted mode less than 9600. No MAX232 required for this test.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default Re: Will I EVER get serial communication working ?

    it's been said countless time here (and probably the manual state it too) SEROUT/SEROUT2 @ 9600 bauds & @ 4mhz aren't going to work accurately.. worst when using an old PIC model AND it's internal OSC.

    Your best bet it at least to use the internal USART (with the according dedicated pins & hardware + DEFINEs) OR worst case use DEBUG.
    Steve

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

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