CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

32 bit math with 16F8XX

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
tvlodek



Joined: 29 Jan 2008
Posts: 3

View user's profile Send private message

32 bit math with 16F8XX
PostPosted: Fri Feb 01, 2008 8:09 am     Reply with quote

Hi,

I was wondering if anyone can suggest the best way to do 32 bit math with this series. I don't program a lot so I'm sure what I have in mind isn't the best way to proceed.

I need to download a bunch of correction factors from an EEPROM via SPI, then perform Horner's method on a transducer input. The correction factors are in IEEE-754 32 bit format.

Is there a slick way to reference these 4 consecutive byte chunks so I can perform the calculations or do I have to OR and shift to create the factor first?

TIA
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Feb 01, 2008 12:18 pm     Reply with quote

Post a link to some sample code or an appnote so we can see what's required.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group