amg amg wrote: > > If you count pulses for 0.46875 seconds instead of 0.5 > > seconds, you can convert your count of pulses directly to > > RPM by just left-shifting it 3 positions. > > Wouldn't that be left-shifting by 7 positions? > > 60/0.46875 =128 = 2^7 No; he's measuring RPM with a sensor that gives 16 pulses per revolution. (60 / 0.46875) / 16 = 8 = 2^3 -Andrew === Andrew Warren -- aiw@cypress.com === Principal Design Engineer === Cypress Semiconductor Corporation === === Opinions expressed above do not === necessarily represent those of === Cypress Semiconductor Corporation -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu