PIC to PIC TX RX and PIC to PC COM RX ..a little help please


Closed Thread
Results 1 to 40 of 68

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Try
    DEBUG "9",DEC 3
    Dave
    Always wear safety glasses while programming.

  2. #2


    Did you find this post helpful? Yes | No

    Default nope :-(

    tried it ...still no joy

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Dave ...

    Do I need the defines on the receiver for debugin ???

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


    Did you find this post helpful? Yes | No

    Default

    Yes, you need DEBUGIN and DEBUG defines.

    I am giving you this stuff from memory and evidently I have forgotton something. When I get back to the shop tonight I will test it and see what I am missing.

    Maybe someone will fill in my blanks
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    The send code
    Code:
        DEFINE DEBUG_MODE  1    ' Debug sending INVERTED serial data
        DEFINE DEBUG_REG PORTB  ' Debug Port = PortC
        DEFINE DEBUG_BIT 3      ' Debug.bit = PortC.4
        DEFINE DEBUG_BAUD 2400  ' Default baud rate = 2400
    
    DEBUG "9",DEC 3,$d,$a
    The receive code
    Code:
        DEFINE DEBUGIN_MODE  1    ' Debug sending INVERTED serial data
        DEFINE DEBUGIN_REG PORTB  ' Debug Port = PortC
        DEFINE DEBUGIN_BIT 4      ' Debug.bit = PortC.4
        DEFINE DEBUGIN_BAUD 2400  ' Default baud rate = 2400
    
    DEBUGIN [WAIT("9"),DEC NET]
    I just ran this in real life, it works.
    Sorry for giving it wrong before.
    Dave
    Always wear safety glasses while programming.

  6. #6


    Did you find this post helpful? Yes | No

    Default pssst Dave .....

    IT WORKS !!!
    WOOOOOOHOOOOOOOOOO you ROCK ! :-)

    Thank you thank you thank you :-)

    By the way that memory of yours was pretty damn close :-)
    Seems inverted mode was needed ?

    What are the $d and $a for in the line below by the way ?

    Code:
    DEBUG "9",DEC 3,$d,$a
    And now for HSERIN and OUT

    A few questions first ..

    1. With HSERIN and OUT , is it a necessity to use the onboard TX/RX pins , in my case PORTC. and PORTC.7 ?

    2. Is it pretty much a case of replacing the debug lines with HSERIN as you said in a n earlier posting ?

    Thanks again Dave

    Dennis

  7. #7
    Join Date
    Dec 2005
    Location
    Salt Lake City, Ut, USA
    Posts
    108


    Did you find this post helpful? Yes | No

    Default

    Hello Dennis,

    I don't know if Dave is online now, so I thought I'de jump in and answer your 2 questions real quick...As Dave has helped me immensely on the same serial in out topic...Thanks again Dave!

    1) The $d $a is a "Carriage Return - Line Feed" terminator
    2) Yep, the hardware ports have to be used for HSERIN/OUT.

    Hope I helped and didn't offend you Dave

    Enjoying this thread, and learning from it too!

    Chris

Similar Threads

  1. Direct PIC to PC without MAX232
    By acjacques in forum Serial
    Replies: 14
    Last Post: - 23rd October 2014, 21:32
  2. Serial VB 2005 pic 16f877a problems
    By Snap in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 8th July 2013, 00:52
  3. PIC or xbee times out after Tx 504 bytes
    By archendekta in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 23rd November 2009, 08:45
  4. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  5. RX TX modules - intermitent communication
    By ruijc in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 11th June 2009, 00:13

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