jit_singh_tara
Full Member level 6
- Joined
- Dec 22, 2006
- Messages
- 325
- Helped
- 9
- Reputation
- 18
- Reaction score
- 4
- Trophy points
- 1,298
- Location
- Delhi , India
- Activity points
- 4,295
0a hexadecimal to decimal
hi therr,
can any one tell me how to convert hexadecimal value in decimal in 8051 assembly programming.
wat i m doing is making a circuit 0 to 99 counter on two seven segments.
i want to read external interrupt , store it in a register say r2 and increment it on every interrupt , now obviously the value incremented or stored in r2 will b in hex.for example after 9 it will b incremented to 0A(hex) instead of 10(decimal) .
i want to use r2 to break it into two nibbles and send them to two 7 segments.
so that i can have 0 on lower 7segment and 1 on upper 7segment.
plz plz help.
hi therr,
can any one tell me how to convert hexadecimal value in decimal in 8051 assembly programming.
wat i m doing is making a circuit 0 to 99 counter on two seven segments.
i want to read external interrupt , store it in a register say r2 and increment it on every interrupt , now obviously the value incremented or stored in r2 will b in hex.for example after 9 it will b incremented to 0A(hex) instead of 10(decimal) .
i want to use r2 to break it into two nibbles and send them to two 7 segments.
so that i can have 0 on lower 7segment and 1 on upper 7segment.
plz plz help.