It all depends on speed I think. How fast does this display function have to be?
One way would be to have 2 word size variables (High_Val and Low_Val) and 10 byte variables (No_1 to No_10)
Look at the DIG function in the manual
Example:
High_Val=51234
Low_Val=65535
No_1= High_Val DIG 4 'this makes No_1 to 5
No_2= High_Val DIG 3 'this makes No_2 to 1
No_3= High_Val DIG 2 'this makes No_3 to 2
No_4= High_Val DIG 1 'this makes No_4 to 3
No_5= High_Val DIG 0 'this makes No_5 to 4
No_6= Low_Val DIG 4 'this makes No_6 to 6
No_7= Low_Val DIG 3 'this makes No_7 to 5
No_8= Low_Val DIG 2 'this makes No_8 to 5
No_9= Low_Val DIG 1 'this makes No_9 to 3
No_10= Low_Val DIG 0 'this makes No_10 to 5
Then you just LCD out the numbers you need.
Bookmarks