PDA

View Full Version : PIC16F628 - Convert Binary to BCD?



steng
- 20th March 2009, 07:42
Hi,I am currently building a digital thermometer. I've used the temperature transducer LM35 for my project.

The output from LM35 was fed into an ADC HI5812 and the resulting output was in binary forms. If I was to use PIC 16F628 as a flash rom, is it necessary for me to have a binary to bcd converter or PIC 16F828 could be programmed to do so..? If PIC 16F628 was able to convert binary to bcd, what would the program be like..?

Thanks a lot.

Archangel
- 20th March 2009, 08:17
Use the search engine this way, notice this is Special Google for this forum <b> OR </b> Internet. Tons of threads RE: BCD
http://www.google.com/custom?hl=en&cof=AH%3Aleft%3BS%3Ahttp%3A%2F%2Fwww.picbasic.co.u k%2Fforum%3BL%3Ahttp%3A%2F%2Fwww.crownhill.co.uk%2 Flogo.gif%3BLH%3A37%3BLW%3A174%3B&domains=picbasic.co.uk&q=bcd&btnG=Search&sitesearch=picbasic.co.uk
here is one . . . http://www.picbasic.co.uk/forum/showthread.php?t=66