32 bit driver

tim griff

Member
Hi Can anyone help with the code to output a word(W0) to a 32bit serial driver for a 4 digit LCD display.
I think I can work out the lookup part to convert the number to a 8 bit.

What I cannot work out is how to "strip" the word to each decimal values ie w0=1234.I think I need to send the LSB (4) first then tens(3), hundreds(2), thousands(1). Help please!!!!
 

hippy

Technical Support
Staff member
<code><pre><font size=2 face='Courier'>units = w0 // 10
tens = w0 / 10 // 10
hundreds = w0 / 100 // 10
thousands = w0 / 1000 // 10 </font></pre></code>
 
Top