How is this data being formed from the values given?


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: How is this data being formed from the values given?

    It looks like the voltage is in the high byte and the high nibble of the low (second) byte.

    The lower nibble of the low (second) byte is probably flags.

    So simplifying my formula slightly and converting say 100V into the hex =

    (100 x 126) - 1286 = 11314 = $2C32

    Then AND $F0 to mask out the lower nibble or the low byte gives $2C30


    The values in the formula look suspiciously like 127 or 128 am I missing something obvious with the conversion?

    Is it really maths as shown on the voltage value to generate the hex?

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    970


    Did you find this post helpful? Yes | No

    Default Re: How is this data being formed from the values given?

    After a little analyses, this is what I got

    Output numbers = (Vin-10)*126 (could be more like 128 as it is then a left shift operation)
    So, converting into a table, this is what I see
    Name:  Screenshot from 2020-11-05 08-16-12.png
Views: 822
Size:  62.4 KB

    Hope this helps

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: How is this data being formed from the values given?

    Thanks for that very interesting..

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,690


    Did you find this post helpful? Yes | No

    Default Re: How is this data being formed from the values given?

    there's few things the arduino community have not hacked into if its at all possible
    a google search for "arduino & 'my secret unmentionable device' " might yield some results
    Warning I'm not a teacher

Similar Threads

  1. need eeprom to save values
    By queenidog in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 10th July 2014, 01:16
  2. linear data memory & large data arrays
    By ronsimpson in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 28th June 2011, 00:21
  3. Port Values
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 2nd January 2007, 21:44
  4. t in POT, c's values
    By selbstdual in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th August 2006, 00:30
  5. Numeric Values
    By Armando Herjim in forum General
    Replies: 8
    Last Post: - 28th June 2006, 02:54

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