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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/11/05 18:50
Read: times


 
#89497 - Handling real numbers
I am making a pulse counter using AT89C2051 uC. Apart from counting pulses I also have to solve an equation of the form:

Displacement = ((No. of pulses)/PPR) * (Pitch).

The default values of PPR and Pitch are 50 and 5 resp (both whole numbers). However, Displacement may be a real number.

Now, the problem is "I don't have much experience programming in assembly and I wonder how to get Displacement as a real number and what would be an appropriate format to store Displacement"

Further complications arise because I have to display Displacement using 7-segment display ( with BCD to 7seg drivers) and I also have to send this value via serial port to a PC.

I am not looking for readymade solutions but guidelines. Kindly. assit me by providing useful tips and relevant refrences (online articles, preferably).

Regards.

List of 9 messages in thread
TopicAuthorDate
Handling real numbers            01/01/70 00:00      
   a thing and questions            01/01/70 00:00      
      More info.            01/01/70 00:00      
         just hundered times            01/01/70 00:00      
            Also known as fixed point math            01/01/70 00:00      
            Sending it to the PC?            01/01/70 00:00      
               look to the left            01/01/70 00:00      
                  Thankyou note!            01/01/70 00:00      
                     BCD            01/01/70 00:00      

Back to Subject List