Strings......and how to join them


Results 1 to 18 of 18

Threaded View

  1. #10
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by gringobomba14 View Post
    My TX line is :
    SEROUT2 PORTc.2,16780,[ ((id<<6) + (rhtc/100<<3) + (temp/100))]

    which seems not to be a problem

    my RX line is
    SERIN2 PORTc.4,16780,250,programstart,[str myvar\6]
    but I don't get what I send. I'm sure there is a glaring error somewhere, but when I hserout myvar I get numbers, but not what I sent
    You're only sending one byte, but expecting to receive 6? How does that work?

    And your SEROUT doesn't make a lot of sense...
    You're shifting id up 6 bits, adding in a number that may or may not fit into those next 3 bits, and doing the same thing with the last number. What's up with that?

    Maybe it would be best if you showed your code rather than your broken snippets.
    Last edited by skimask; - 18th July 2008 at 20:42.

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