Has anybody some experience with perprocessor calculations?
Because of a user friendly handling I need some unique calculations. It is necessary to do them with the preprocessor because I work with a Pic10F202 and with 512k ROM I've not enough memory left to do them in the program.
Me problem is now the calculation returns a 16Bit value but the real result is a 24Bit (32 Bit) Value. Is there a possibility to tell the compiler to calculate with 32 Bit values?
Piece code:
Code:
#define RUN_TIME 1 //Set Run Time in d (0 - 814) (resolution 2.304s)
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