Posted by The Happy Hippy on May 31, 2006, 8:05 pm, in reply to "binary to decimal conversion" --Previous Message-- You need to convert the w0 value into five separate digits, then send each digit to the LCD ... w0 = 12345 w6 = w0
62.252.64.32
: Dear Hippy, I implemented a PICAXE
: 18X-LCD -DS18B20 digital
: thermometer based on your work. Now,
: in an other project, I am trying to
: input a square wave signal on pin#2
: of 18X and use COUNT instruction
: [with delay of one second]. The
: reading in the W0(word register) is
: 0FBDh. How can I read this as a
: decimal number on the LCD. I need
: the hint to convert the binary
: number into decimal digits. Any help
: will be much appreciated.
: Thanks.
: Sira
b0 = w6 / 10000 + "0"
b1 = w6 / 1000 // 10 + "0"
b2 = w6 / 100 // 10 + "0"
b3 = w6 / 10 // 10 + "0"
b4 = w6 // 10 + "0"
Message Thread:
![]()
« Back to thread
Please note that only the last 200 messages are stored; spam will therefore be deleted.