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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/25/01 08:11
Read: times


 
#11933 - Determine a percentage f
Hi Guy's

Hope you can shed some light. My project monitor 4 buttons, each with a different address. The uP monitors these buttons and increment ram addresses respectively . I need to find a way to work out and display a persentage of how many times a button was pressed coresponding to the total . I store my total ( all 4 buttons pressed ) in 7 different ram addresses ( in order to count up to 9 milion - dont know if there is a way to keep a total of up to 9 mil in one register).

Button1%= (amountbutton1 pressed)/(total) *100

same with button 2-4

is it possible to work with such large dec numbers and do div and mul in a 8bit reg?

thanking you
melt




List of 2 messages in thread
TopicAuthorDate
Determine a percentage f            01/01/70 00:00      
RE: Determine a percentage f            01/01/70 00:00      

Back to Subject List