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 CCS Technical Support

OK, I am an idiot

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



Joined: 15 Jun 2015
Posts: 16
Location: Dallas, TX

View user's profile Send private message Visit poster's website

OK, I am an idiot
PostPosted: Sat Jul 04, 2015 4:08 pm     Reply with quote

Feel free to disagree...

It finally dawned on me that if I have fewer than the max pulses I will still make my way down through the rest of the IF ELSE statements and count the lows. This will never come out right as written.

I am curious though. What is it about floating point variables that caught your attention? I am just learning micros.

Randy


++++++++++++++++++
Randy,
Please do not start multiple threads on the same topic.

- Forum Moderator
++++++++++++++++++

_________________
Randy Principe
Electrical Engineering Technician
temtronic



Joined: 01 Jul 2010
Posts: 9226
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Jul 04, 2015 5:04 pm     Reply with quote

quick answer...
Floating point 'math' consumes a HUGE amount of time with really very,very little benefit. PICs( all 'micros') were NOT designed as heavy math 'crunchers'. Others can point out how to use scaled integers and get far faster/better math.

Jay
guy



Joined: 21 Oct 2005
Posts: 297

View user's profile Send private message Visit poster's website

PostPosted: Mon Jul 06, 2015 3:41 am     Reply with quote

Randy, don't miss my reply in the other thread, http://www.ccsinfo.com/forum/viewtopic.php?t=54112
It could push you in the right direction of 'how you do stuff with CCS compiler'.
Cool
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