Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/26/06 10:06
Modified:
  01/26/06 10:42

Read: times


 
#108335 - multiplication problem
hi!

I am doing a project on measuring distance,using the 8051. I am using timer 0 to time how long it takes to send and recieve a signal, and using that time, to covert it into distance by using the formula, distance=speed*time.

But i have one problem, the measurement should only take around 30ms and i need to multiply this by the speed of sound which is approximately 330m/s.

how can i multiply 330*0.030 for example.
I then want to display the result on four 7segment displays with a decimal point after the first display.
so the output would be 1.432 for exam.ple
what should i do?

Regards, Alan Grant

List of 7 messages in thread
TopicAuthorDate
multiplication problem            01/01/70 00:00      
   what is the input and output?            01/01/70 00:00      
   Whats the plan ??            01/01/70 00:00      
   It's about units            01/01/70 00:00      
      Units - example            01/01/70 00:00      
      Speed            01/01/70 00:00      
   Constant X value            01/01/70 00:00      

Back to Subject List