
Originally Posted by
bitmaniac
Well I think will follow the table lookup method (although there will be one more chip (eeprom) in the pcb) but I have first to solve the equation you send to calculate meters instead of milibars.
..and better to kPa and not milibars.
I will let you know of my progress...
Hi, Alexandros
I think the best way for the lookup table is :
1) @ first ... take, say 200 or 250 points to calculate with the Excel Sheet ... ( just copy the formula by selecting the lines where to copy ... )
2) compare results by taking exact 50 points, and linear approx between those points and the exact 200 points you've already calculated .... notice 50 give more precision than required ... ( lol )
3) Take 32 points and idem 2) ...
4) Stop when satisfied ( 32 might be comfortable for 0 -3000 m range)
Do you really think an external EEPROM is needed ??? ... The LOOKUP command stores data in the ... Program memory !!! ( as " retlw xx " lines )
Now, I think XL sheet gives meters too ... no ???
On my side I shall write an XL sheet for that purpose ... might be handy one day ...
Good Evening
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks