Microcontroller › 8051 › Calculating flow rate of an infusion pump › Hi Mohammed, It is very
May 16, 2014 at 4:25 am #11735
It is very simple. Tell you the logic!
Take another variable, say ‘m’,
step : 1; m = k % 10, you will get the unit place value of k in m,
step : 2; now m = m + ‘0’, you will get the ascii value of that unit place, which you can display on the LCD.
step : 3; display m on LCD
step : 4; Now k = k / 10 and, continue these 4 steps until k becomes zero at step 4.