Microcontroller › 8051 › how to merge TL0 and TH0 value to an integer › unsigned int a;a=TH0;a<<=8;
May 29, 2013 at 12:40 pm
#9861
Participant
unsigned int a;
a=TH0;
a<<=8; //left shift higher byte by 8 bits
a|=TL0; //merge lower bytes using OR