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

Super fast addition?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
curt2go



Joined: 21 Nov 2003
Posts: 200

View user's profile Send private message

PostPosted: Tue Jul 17, 2018 2:25 pm     Reply with quote

I am using on the SIM in MPLAB. I am assuming that is the issue. I will be trying the actual code later tonight on my pic. I think that it would work fine.

Thank you for all the help.
curt2go



Joined: 21 Nov 2003
Posts: 200

View user's profile Send private message

PostPosted: Tue Jul 17, 2018 7:05 pm     Reply with quote

Yep, its a problem with the SIM. Works good on my program. The SIM was predicting 1.23mS but in the real world I an getting 1.45ms. But I am adding 3 times in the statement now.

Thank you for the help. This kind of math will help me in some other areas as well.
Ttelmah



Joined: 11 Mar 2010
Posts: 19215

View user's profile Send private message

PostPosted: Wed Jul 18, 2018 12:00 am     Reply with quote

Well done.

It's been quite fun having somebody actually trying to work with scaled integers instead of FP (one of my 'pet' likes...). Very Happy

Keep up the good work!.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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