I use MIcrochip Pic16F946 for my project. The project has 4 digits for setting up Private ID code so that multiple users can use this controller without interference. I want to write c code to convert this 4 BCD digits to 16 Binary number. Remenber, 1 BCD digit represent 4 bits in binary or 0 to 9 in decimal.
Can anyone, help me write this code, assumeing it is packed BCD.