emax0198
Member level 2
Bit order?
For an 8-bit register of PIC16F84 the data read in, is a binary number from a BCD dip switch but the bits read in are not in a uniform order (bit order is different). How to converted to a decimal value in binary format, like 54 = 00110110, but the order read in is 10110010.
What is the solution and how to code in assembly?
For an 8-bit register of PIC16F84 the data read in, is a binary number from a BCD dip switch but the bits read in are not in a uniform order (bit order is different). How to converted to a decimal value in binary format, like 54 = 00110110, but the order read in is 10110010.
What is the solution and how to code in assembly?