gnupic: Has anybody used the AN575 floating point library?


Previous by date: 22 Dec 2004 00:27:37 +0000 Re: Compile problems with gpsim-0.21.2, Wayne
Next by date: 22 Dec 2004 00:27:37 +0000 Adding devices to gpsim, toftat.cowshed.8m.com
Previous in thread: 22 Dec 2004 00:27:37 +0000 Re: Has anybody used the AN575 floating point library?, Mark Rages
Next in thread:

Subject: Re: Has anybody used the AN575 floating point library?
From: "George M. Gallant" ####@####.####
Date: 22 Dec 2004 00:27:37 +0000
Message-Id: <41C8BFB6.9070800@comcast.net>

Mark,

I don't know the specifics of the function you are using, but the 
"typical" byte order is
little endian. You might also try the sdcc library.

George

Mark Rages wrote:

>>From the application note:
>
>INTEGER TO FLOAT CONVERSION
>The routine FLOxxyy converts the two's complement
>xx-bit integer in AARG to the above yy-bit floating point
>representation, producing the result in AEXP, AARG.
>The routine initializes the exponent to move the radix
>point to the right of the MSb and then calls the normal-
>ize routine. An example is given by
>FLO1624(12106) =
>FLO1624(0x2F4A) =
>0x8C3D28 =
>12106.0
>
>So I try it:
>
>	movlw 0x00
>	movwf AARG
>	movlw 0x2F
>	movwf AARG+1
>	movlw 0x4A
>	movwf AARG+2
>	
>	call FLO2424
>
>After this, 
>AARG=0x000e8e
>
>Regards,
>Mark
>markrages@gmail
>
>
>On Fri, 19 Nov 2004 17:33:24 -0500, David Willmore
####@####.#### wrote:
>  
>
>>>I'm having a hard time getting the AN575 libary to work on a 16F688.
>>>
>>>I am using the files "MATH16.INC" and "FP24.A16"
>>>
>>>Is anyone here familiar with this library? I've been trying to get the
>>>int->float conversion to do something, anything...
>>>      
>>>
>>I've played with it some.  I used the FT32.A16 library, but there
>>shouldn't be too much difference.  What are you trying and what
>>are you seeing?
>>
>>Cheers,
>>David
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ####@####.####
>For additional commands, e-mail: ####@####.####
>
>
>  
>



Previous by date: 22 Dec 2004 00:27:37 +0000 Re: Compile problems with gpsim-0.21.2, Wayne
Next by date: 22 Dec 2004 00:27:37 +0000 Adding devices to gpsim, toftat.cowshed.8m.com
Previous in thread: 22 Dec 2004 00:27:37 +0000 Re: Has anybody used the AN575 floating point library?, Mark Rages
Next in thread:


Powered by ezmlm-browse 0.20.