value is stored in a register..
i am using 4 bit of port 2 to interface with 4 bit encoder.
suppose value is in reg. R0
then..
mov p2, R0;
how can i give a decimal no to port 2
Explain what? It's just a code snippit, not a complete program. The first line sends the lower 4 bits, second line places the upper 4 bits in the lower portion, and third line sends the newly placed for bits. So, for example, for 53H, it sends the "3" and then the "5". Sending Decimal 83 doesn't solve you problem.
value is stored in a register..
i am using 4 bit of port 2 to interface with 4 bit encoder.
suppose value is in reg. R0
then..
mov p2, R0;
how can i give a decimal no to port 2