by David Lions
I made a utility to convert a floating point number into byte representation. It can convert into several formats, Hitech 24 Bit, IEEE 754 32Bit, and Microchip 24 and 32 bit format used in their application note AN575. It also converts back the other way, and shows information about the format being used.
We are doing a lot of manual calibration. This involves calculating gains and offsets on paper, then having to program them in byte-by-byte. The purpose of this was to get the byte representation quickly and easily. We only use Hitech 24 bit but I thought I'd add some other formats as a learning excersise, make it more useful to others, and justify 1Gb of disk space used by Visual C++.
Al Williams of AWC Says:
Hey, that's neat. I have a similar program available you can download for free at the link included.
This is the same program we provide with the PAK-I, PAK-II, and PAK-IX math coprocessors.
|file: /Techref/microchip/math/fpconvert.htm, 2KB, , updated: 2001/8/20 07:38, local time: 2018/1/23 14:17,
|©2018 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.piclist.com/techref/microchip/math/fpconvert.htm"> PIC Microcontoller Math Method</A>
|Did you find what you needed?|
PICList 2018 contributors:
o List host: MIT, Site host massmind.org, Top posters @20180123 David C Brown, Isaac M. Bavaresco, Manu Abraham, RussellMc, Van Horn, David, Dwayne Reid, Harold Hallikainen, James Cameron, Sean Breheny, John Gardner,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!