Hi there,
I'm new to this board and a newbie on both PIC and C programming language. I am 16 years old and also a student. Rigt now I am trying to make a small application on the PIC 16F648A, which I try to turn into a solar panel controller to swing the panel into the most efficient position towards the sun.
So what is my problem?
Well, I use the CCS Pic-C Compiler v3.202. It seems that this version have a bug inside the compiler. If I declare a float and put a floating point value in to it, there will always occur a rounding error. For example:
float num;
num = 5.5;
The content of the variable "num", will now be "5.499999999...". Any float value will have the same effect. Pretty anoying for me, actually.
Yes, a friendly soul from this board have already told me that there is a better compiler from Microchip, called "MCC18". For the next project, I could try to test this one instead. But as it is now, I have already invested some time on a sourcecode for the CSS Compiler. And the time is running out as well, to finnish this current school-project of mine.
So, I would like to get in touch with anyone who is using the CCS compiler today, just to ask some technical questions.
/Kenton
I'm new to this board and a newbie on both PIC and C programming language. I am 16 years old and also a student. Rigt now I am trying to make a small application on the PIC 16F648A, which I try to turn into a solar panel controller to swing the panel into the most efficient position towards the sun.
So what is my problem?
Well, I use the CCS Pic-C Compiler v3.202. It seems that this version have a bug inside the compiler. If I declare a float and put a floating point value in to it, there will always occur a rounding error. For example:
float num;
num = 5.5;
The content of the variable "num", will now be "5.499999999...". Any float value will have the same effect. Pretty anoying for me, actually.
Yes, a friendly soul from this board have already told me that there is a better compiler from Microchip, called "MCC18". For the next project, I could try to test this one instead. But as it is now, I have already invested some time on a sourcecode for the CSS Compiler. And the time is running out as well, to finnish this current school-project of mine.
So, I would like to get in touch with anyone who is using the CCS compiler today, just to ask some technical questions.
/Kenton