Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/23/00 18:00
Read: times


 
#2305 - RE: BCD to Bin and Bin to BCD algorithm
Hello. I am beginer in MCS51, but I solve this problem at ASM.
Check Intel's Embedet Aplications Handbook for ideas
I found 3 diferent ways:
1. Calculate result direct
example:
A4*2^4+A3*2^3+A2*2^2+A1*2^1+A0*2^0=
=(((A4*2+A3)*2+A2)*2+A1)*2+A0
2. Calculate result using tables
example:
begin with LSB
is it true(log 1)
yes then add to result table value (001)
no then no add nothing
check next bit
3. Calculate result by substracting constants 1, 10, 100... from source digit
Sorry if my english is bad. Write my


List of 3 messages in thread
TopicAuthorDate
BCD to Bin and Bin to BCD algorithm            01/01/70 00:00      
RE: BCD to Bin and Bin to BCD algorithm            01/01/70 00:00      
RE: BCD to Bin and Bin to BCD algorithm            01/01/70 00:00      

Back to Subject List