Decoding serial data bytes and nibbles.


Results 1 to 7 of 7

Threaded View

  1. #3
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: Decoding serial data bytes and nibbles.

    'another way....
    indata var byte[15] 'assuming byte 14 is most significant
    dataword var word[10] 'assuming word 9 is most significant
    outpointer var byte
    inpointer var byte

    outpointer = 0
    while outpointer < 10
    inpointer = 0
    while inpointer < 12
    dataword.0((outpointer * 12) + inpointer) = indata.0((outpointer * 12) + inpointer)
    inpointer = inpointer + 1
    wend
    outpointer = outpointer + 1
    wend
    Last edited by Dave; - 17th January 2018 at 22:27. Reason: OOPS....
    Dave Purola,
    N8NTA
    EN82fn

Similar Threads

  1. I need to play with Nibbles, am i on the right track?
    By OldMarty in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2016, 13:32
  2. Replies: 7
    Last Post: - 11th September 2010, 00:32
  3. incorrect requested number of data bytes recieved
    By doxdlite in forum mel PIC BASIC
    Replies: 0
    Last Post: - 17th April 2010, 22:47
  4. Word to nibbles
    By Gauge Guy in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 11th September 2005, 04:08
  5. Serial Data Recorder
    By d1camero in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 8th April 2005, 12:45

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