Serial out
Kiwi
Posts: 85
hello,
Example: say that you have a 8bits memory space, that contains the value #255. I want to display this number on a LCD or Hyperterminal. That would means that i first have to·send the asci value of ·#2, then #5,and· #5.
But how can i implement a division instruction or routine·to obtain the 2,5,5?
Kurt
Example: say that you have a 8bits memory space, that contains the value #255. I want to display this number on a LCD or Hyperterminal. That would means that i first have to·send the asci value of ·#2, then #5,and· #5.
But how can i implement a division instruction or routine·to obtain the 2,5,5?
Kurt
Comments
Count how many times you can subtract 100 until the value underflows, then add 100 to the value
Count how many times you can subtract 10 until the value underflows, then add 10 to the value
The value left is the units (1's) value.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video Display Module" Available Now.
www.sxvm.com
"A problem well defined, is a problem·half solved."
·
The entire program can be found at
·http://www.parallax.com/sx/contest/contest_door_velocity.asp