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


    Did you find this post helpful? Yes | No

    Default ok.... just for fun !

    Al thanks a million for the clarity on that one .. will check and feedback !

    Dave ... ok just for fun so be it !
    And if I get greedy would the Var bytes be num num num ? :-)

    Expect Feedback .. results may vary :-0

    Kind regards

    Dennis

  2. #2


    Did you find this post helpful? Yes | No

    Default working!!

    Hi Dave ;-)

    That TX RX code you passed on works like a charm too X Y and Z coming through clear as day although I changed it for HSERIN and HSEROUT

    Not sure what you want me to try with this code though ??

    [code]
    XNUM VAR BYTE[8]
    XNUM = 225 'CHANGE THIS NUMBER AS NEEDED

    SEROUT2 GPIO.5,16780,[TRAIN,SYNK,DEC XNUM.7,DEC XNUM.6,DEC XNUM.5,_
    DEC XNUM.4,DEC XNUM.3,DEC XNUM.2,DEC XNUM.1,DEC XNUM.0,_
    "--",DEC XNUM,$d,$a]
    [code]

    Did you want me to TX/RX it ? modify and put on send and receive side ?

    Dennis

  3. #3


    Did you find this post helpful? Yes | No

    Thumbs up Mods

    Hi Al

    I applied your suggestion , unfortunately it didn't work , my receiver side has an IF ..THEN statement looking for the number 23, and implementing your suggestion on the TX side only doesn't seem to send the correct DEC 23 to the RX so the IF condition is never met ...check my receiver side code for clarification.
    To confirm , I only left the DEC modifier on the receiver side.. (please note though that at the receiver side I have hserin and hserout statements using the DEC modifier.
    I placed your code suggestion on the TX of the first PIC only ..so it looks something like this
    TX ----------- hyoerterminal
    TX ------RF----- RX
    PIC1 PIC2

    Will bash around with it a little more and see what comes of it :-)
    I'll post result back as soon as I have double checked each step too.

    kind regards

    Dennis

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Dennis View Post
    Hi Dave ;-)

    That TX RX code you passed on works like a charm too X Y and Z coming through clear as day
    Really??? Well how about that...
    Not sure what you want me to try with this code though ??

    [code]
    XNUM VAR BYTE[8]
    XNUM = 225 'CHANGE THIS NUMBER AS NEEDED

    SEROUT2 GPIO.5,16780,[TRAIN,SYNK,DEC XNUM.7,DEC XNUM.6,DEC XNUM.5,_
    DEC XNUM.4,DEC XNUM.3,DEC XNUM.2,DEC XNUM.1,DEC XNUM.0,_
    "--",DEC XNUM,$d,$a]
    [code]

    Did you want me to TX/RX it ? modify and put on send and receive side ?

    Dennis
    Send directly to a terminal.
    You said you wanted three bytes, sometimes 8 bits can be as good. just thought you might see a use... splitting the byte up, multiple outputs on the same port... but if you need 23 then it will not help you this time.

    Al was suggesting you only put the DEC on the RX side. That is why I thanked him for pointing out my mistake. I put a DEC on both in a couple of post.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Direct PIC to PC without MAX232
    By acjacques in forum Serial
    Replies: 14
    Last Post: - 23rd October 2014, 22:32
  2. Serial VB 2005 pic 16f877a problems
    By Snap in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 8th July 2013, 01: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, 09: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, 15:46
  5. RX TX modules - intermitent communication
    By ruijc in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 11th June 2009, 01:13

Members who have read this thread : 2

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