How can i read a port in 8051 uC. Can you please list out a source which accept P0 port value and add 10 into it and write it to P2. ( please include all variable declaration in soyrce code).
sfr P0 = 0x80; sfr P2 = 0xA0; P2 = P0 + 10;
millions times thnks it works.