Quote:
|
Originally Posted by chakorules
Is float supported in this PIC?
|
No.
Quote:
|
Originally Posted by chakorules
Can I even do a calculation like this?
|
Yes.
The PIC18 does not contain a floating point unit or floating point instructions. All floating point math is handled in software and handled inline by the compiler. This is why all floating point math takes a long time, and is highly discouraged.
However, from looking at the documentation, it appears that floats are
not supported by printf() and related functions. See section 4.7 in .\mcc18\doc\MPLAB-C18-Libraries.pdf for the formats supported.