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

Search found 132 matches
CCS Forum Index
Author Message
  Topic: fprint formating in 4.132
sjbaxter

Replies: 5
Views: 7850

PostForum: General CCS C Discussion   Posted: Fri Apr 20, 2012 2:54 pm   Subject: fprint formating in 4.132
I have not found the exact cause yet, but I can say that moving the compare from the 3rd param out of the fprintf, it works ok !

float t;
t = (float)((elapsedtime == 0) ? 0.0f ...
  Topic: fprint formating in 4.132
sjbaxter

Replies: 5
Views: 7850

PostForum: General CCS C Discussion   Posted: Fri Apr 20, 2012 2:29 pm   Subject: fprint formating in 4.132
Hi PCM,

I'm trying to repeat it as a standalone app ... with no success (at getting it to fail!!).

So, i'm checking the effects if interrupts in my application and if the variable deltatemp1 is ...
  Topic: fprint formating in 4.132
sjbaxter

Replies: 5
Views: 7850

PostForum: General CCS C Discussion   Posted: Fri Apr 20, 2012 2:12 pm   Subject: fprint formating in 4.132
Hi PCM,

Tried that! the compiler is happy, but output is still random :

v3.236 Output with no cast
---------------
T,367,21.75,0.00,*
T,368,21.50,-0.50,*
T,369,21.50,-0.50,*
T,370,21.25,-1. ...
  Topic: fprint formating in 4.132
sjbaxter

Replies: 5
Views: 7850

PostForum: General CCS C Discussion   Posted: Fri Apr 20, 2012 1:34 pm   Subject: fprint formating in 4.132
Hi all,

Just forced back to updating an old project and returning to PICs and the horrible world of MPLAB after 5 years of wonderful trouble free ARM7/9 development and I immediately have a problem ...
  Topic: Best method to interpolate a point on a curve?
sjbaxter

Replies: 6
Views: 6265

PostForum: General CCS C Discussion   Posted: Thu May 10, 2007 5:00 am   Subject: Best method to interpolate a point on a curve?
Which micro did you have in mind ? I've used the polynomial code (in the link above) in many 16Fxx and 18Fxxx devices with excellent results.

It all depends on you application and how much executio ...
  Topic: Best method to interpolate a point on a curve?
sjbaxter

Replies: 6
Views: 6265

PostForum: General CCS C Discussion   Posted: Wed May 09, 2007 11:50 am   Subject: Best method to interpolate a point on a curve?
have a look at this thread:

[url=http://www.ccsinfo.com/forum/viewtopic.php?t=29767&highlight=polynomial]Calibration Tables

this suggests a few methods.

Interpolation is quick but not acc ...
  Topic: Simultaneous Access of FRAM Problem
sjbaxter

Replies: 9
Views: 9497

PostForum: General CCS C Discussion   Posted: Mon Apr 02, 2007 2:03 pm   Subject: Simultaneous Access of FRAM Problem
I don't suppose you wired up the HOLD pin of the FRAM to an I/O pin on the pic.

If you did, you could put the FRAM in HOLD in the INT_AD and release it at the end of the interrupt routine. Theoret ...
  Topic: Easiest Method of communication between 2 pics?
sjbaxter

Replies: 4
Views: 6419

PostForum: General CCS C Discussion   Posted: Thu Mar 15, 2007 3:50 am   Subject: Easiest Method of communication between 2 pics?
As for the data transfer on this 'hardware link', there are plenty of examples of serial reading/writing all over this forum.

Try using the search feature on the top of this forum page !!! it real ...
  Topic: Storing large lookup tables
sjbaxter

Replies: 9
Views: 16438

PostForum: General CCS C Discussion   Posted: Tue Feb 06, 2007 1:24 pm   Subject: Storing large lookup tables
aodj,

const float Temperature[4] = {
-0.1429f, // constant
-2.4048f, // x
3.5714f, // x^2
-0.1667f // x^3
};

float GetCalibratedTemperature(float fValue&# ...
  Topic: Storing large lookup tables
sjbaxter

Replies: 9
Views: 16438

PostForum: General CCS C Discussion   Posted: Tue Feb 06, 2007 11:31 am   Subject: Storing large lookup tables
I'll post some example code when I get home.

You don't do the full calculation for each adc reading as it is written down in the formula, but an incremental multiplication of x (to give you the po ...
  Topic: Storing large lookup tables
sjbaxter

Replies: 9
Views: 16438

PostForum: General CCS C Discussion   Posted: Tue Feb 06, 2007 11:09 am   Subject: Storing large lookup tables
You can do it by two ways:

1) Approximate the curve by a series of straight lines then do a bit of code to find the real value based on the segment you are in. i.e.

ADC Real Value
0 ...
  Topic: Can't Communicate Using CAN MCP2515
sjbaxter

Replies: 6
Views: 16837

PostForum: General CCS C Discussion   Posted: Wed Jan 31, 2007 6:01 am   Subject: Can't Communicate Using CAN MCP2515
Supertorresmo, can you have a look at:

[url=http://www.ccsinfo.com/forum/viewtopic.php?t=29627]http://www.ccsinfo.com/forum/viewtopic.php?t=29627

and tell quad3 what your fix to you problem was. ...
  Topic: CAN problem (beginner)
sjbaxter

Replies: 28
Views: 73821

PostForum: General CCS C Discussion   Posted: Wed Jan 31, 2007 5:59 am   Subject: CAN problem (beginner)
Have a look at:

[url=http://www.ccsinfo.com/forum/viewtopic.php?t=29646]http://www.ccsinfo.com/forum/viewtopic.php?t=29646

NOTE TO FORUM MODERATORS:

If guests (non registered members) were st ...
  Topic: Can't Communicate Using CAN MCP2515
sjbaxter

Replies: 6
Views: 16837

PostForum: General CCS C Discussion   Posted: Mon Jan 29, 2007 6:06 am   Subject: Can't Communicate Using CAN MCP2515
If you can put 3 mesages into the tx buffer and then nothing else happens, then it sounds like the messages are not actually been sent (physically) to the other device and they are filling up the avai ...
  Topic: CANBus ID filtering
sjbaxter

Replies: 27
Views: 45485

PostForum: General CCS C Discussion   Posted: Thu Jan 25, 2007 7:24 am   Subject: CANBus ID filtering
Should that read 29bits and not 27 ?
 
Page 1 of 9 Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group