Noman Yousaf
Full Member level 4
- Joined
- Nov 19, 2003
- Messages
- 208
- Helped
- 3
- Reputation
- 6
- Reaction score
- 2
- Trophy points
- 1,298
- Location
- Lahore Pakistan
- Activity points
- 1,763
in 8051 series there is very easy to add 2 digits in BCD. "DA" instruction is used for this. now in AVR i want to add 10 digits with 5 digits. how that is possible in very low time, just like using DA in 8051. but unluckily there is not any instruction in AVR instruction set. please help me.
i know 1 method.
by using "ADC", do all in "HEX" then convert it in BCD. but here is one more problem, there is not division in AVR so division takes long time by subtracting.
i know 1 method.
by using "ADC", do all in "HEX" then convert it in BCD. but here is one more problem, there is not division in AVR so division takes long time by subtracting.