Microcontroller › 8051 › plz tell me how to use 16 bit timer value › hi zobi,use DPTR register of
July 27, 2011 at 5:28 am
#6523
dagakshay
Participant
hi zobi,
use DPTR register of 8051..
or take an unsigned int what would be a 16 bit variable;
eg:
unsigned int i=0x1234;
P1=i;
P2=i>>8;
The output for P1 will be 0x34 and for P2=0x12;
i tried the above example you can use according to your program