scdoro
Member level 5
how to convert 26 in binary
Hi all,
I have problem in converting 26 bit binary to BCD using PIC 16F782 using assembly language.
I need to convert eg 2FAF080 hex to 50 000 000 dec using 4 registers casade together..
which mean 4 bytes. actually my application is to make use of timer0 as a counter to count the input freqency and store them in a 4 byte register.. then convert to BCD to be display on lcd, it may be any value up to 50M,
Can anyone pls help me on that ?
thanks a lot
Hi all,
I have problem in converting 26 bit binary to BCD using PIC 16F782 using assembly language.
I need to convert eg 2FAF080 hex to 50 000 000 dec using 4 registers casade together..
which mean 4 bytes. actually my application is to make use of timer0 as a counter to count the input freqency and store them in a 4 byte register.. then convert to BCD to be display on lcd, it may be any value up to 50M,
Can anyone pls help me on that ?
thanks a lot