hey
i am using 89c51 to measuring velocity. the distance is fix. but i am unable to divide it with time which is varying. plz help me with some example of such division. let my distancce is 15cm and time will not b more than half minute. i am using oscillator of 11.0592MHz.
thanks in advance
"hanx but register B is only of 8 bits. what to do if my time is more than #FFh"
The same thing the school teached you when dividing with pen and paper. Just that you aren't limited to digits 0..9 anymore but can compute with digits 0..255 aka bytes.
thanx but register B is only of 8 bits. what to do if my time is more than #FFh
"check ur oscillator frequency. 12MHz is best."
Define best, please.
What is your view on 12MHz when configure baudrates for the UART?
mov dptr, #distance movx a, @dptr mov dptr, #time movx b, @dptr div ab
check ur oscillator frequency. 12MHz is best.
View all questions in Keil forum