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
Posted: Tue Jul 17, 2018 7:05 pm
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: 19238
Posted: Wed Jul 18, 2018 12:00 am
Well done.
It's been quite fun having somebody actually trying to work with scaled integers instead of FP (one of my 'pet' likes...).
All times are GMT - 6 Hours Goto page Previous1, 2
Page 2 of 2
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