Hi All, I'm stuck with figuring out how to create a look-up table using a pic16f684 in assembly using 3 outputs from an accelerometer.
I basically am using 3 outputs from an accelerometer (X, Y and Z) to create two new values (A and B) depending on each unique value of the accelerometer outputs. From datasheets and breaboard data, accelerometers are naturally non-linear to some extent, which in my application will need a look-up table.
My thoughts are... to create variable A from X, Y and Z...I will need one table for variable A, and a different table for variable B. They will both reference the accelerometers outputs X, Y and Z which all will be read at the same time.
Any thoughts or advice on creating a loop-up table would be greatly appreciated!
Thanks in Advance
Steve
I basically am using 3 outputs from an accelerometer (X, Y and Z) to create two new values (A and B) depending on each unique value of the accelerometer outputs. From datasheets and breaboard data, accelerometers are naturally non-linear to some extent, which in my application will need a look-up table.
My thoughts are... to create variable A from X, Y and Z...I will need one table for variable A, and a different table for variable B. They will both reference the accelerometers outputs X, Y and Z which all will be read at the same time.
Any thoughts or advice on creating a loop-up table would be greatly appreciated!
Thanks in Advance
Steve