Hello, I'm trying to make thermometer/thermostat for my house. I'm writing my code in PicBasic Pro and I can't seem to figure out how to convert the 8-bit binary data comming out from DS1821 temp sensor into 4-bit BCD and send it to PORTB (B.0-B.3) in order to drive two CD4511's in parallel. Just one more thing. I'm not planning to multiplex the 7 segment displays (two digits), but to drive their LE pins with 2 pins from 16F84 or 16F628. I would really appreciate your help. Sincerest regards, Vladimir M Skrbic -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.