deepshah3
Junior Member level 1
How do I convert BCD value into integer value
I am making a clock by interfacing RTC ds1307 with PIC16F877A.For the display I am using 4 seven segment LED displays.The data read from RTC is in BCD form.In order to display the value on the 7 segment display,I need it to be an integer value.Can someone provide me the C code to convert the BCD value into integer value?
I am making a clock by interfacing RTC ds1307 with PIC16F877A.For the display I am using 4 seven segment LED displays.The data read from RTC is in BCD form.In order to display the value on the 7 segment display,I need it to be an integer value.Can someone provide me the C code to convert the BCD value into integer value?