USB Receiving a Word


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    sinoteq's Avatar
    sinoteq Guest

    Default

    Hi,
    Have you thought about that 1000 DEC is HighByte=3 and LowByte=232 and not 10 00?
    What you get is actually correct if you look at following:

    00001010 00000000=2560 HighByte=10 DEC LowByte=0
    00000011 11101000=1000 HighByte=3 DEC LowByte=232

    My suggestion is to split the word in VB using a different method.

  2. #2
    Join Date
    Aug 2005
    Posts
    42

    Default

    Ah now I see of course.

    So in my VB prog I will take the value say 1000

    Splt it down to 16bits
    0000001111101000

    Split again to high and low 8 bits

    00000011 = 3
    11101000 =232

    Then send dec value of each set of 8 bits.

    Excellent!

    Regards

    Sean.

Similar Threads

  1. Read/Write Problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 01:51
  2. Minimizing code space
    By Tobias in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th May 2009, 07:25
  3. SEROUT WORD variable problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th April 2009, 11:20
  4. DS2760 Thermocouple Kit from Parallax in PicBasicPro
    By seanharmon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th July 2008, 23:19
  5. calculation problem
    By nicolelawsc in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st March 2006, 15:23

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