I was wondering if it's possible to do a calculation with percentage without using a float. The math is done in the interrupt routine and I would like to keep that as short and fast as possible.
This the calculation i would like to make:
PPM_BASE[PPM_cur_ch] = PPM_BASE[PPM_cur_ch] * 1.10;
But i want to replace the 1.40 by an integer number to speed up the calculation process PPM_BASE has an value of 1000 - 2000 with a resolution of 1024 steps (ad convertor). And for the calculation the 1.4 value can be between 0.00 and 1.10 with 2 decimals at most.
Also the 1.4 value should become of an value outside the interrupt routine and this function will be called every 1ms. So I would like to place and edit the integer value outside the interrupt routine. But the changes of the PPM_BASE value should be inside the interrupt routine since this is the actual signal.
It's for an 16 channel PPM transmitter program.