In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ALTITUDEAP wrote: Hey guys, well i have a chip that i am interfacing to that gives me some variables an then i have to do some math with these values. Can i do these functions internally with the SX. Examples would be greatly appreciated. 1. Temp = 200+dT*(F+50)/2^10 F and dT are know values and we are solving for Temp 2. OFF = A*4+((B-512)*dT)/2^12 A and B are both know and we are solving for OFF 3. SENS = C+(D*dT)/2^10 Again C, D, and dT are known 4. X = (SENS*E-7168))/2^14-OFF 5. P=X*10/2^5+250*10 Thanks in advance for all your help ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=145125 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)