imtisal
Junior Member level 1
- Joined
- Nov 12, 2012
- Messages
- 18
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 1,283
- Activity points
- 1,418
Helllo all,
Kindly anyone tell me how to load ADRESH and ADRESL values into one register i.e. 16 bit register. I am using ADFM = 1 [Left Justified Format]
I am using MickroC.
In addition to this,
I got some command while searching over internet as follow: -
value=((ADRESL)|(ADRESH<<8));
where value is a 16 bit integer. But I am confused in ADRESH<<8 , whatever the result is in ADRESH, it should become zero after shifting 8 times. Isn't it?
kindly help me to understand this basic idea.
Thanks in advance.
Imtisal
Kindly anyone tell me how to load ADRESH and ADRESL values into one register i.e. 16 bit register. I am using ADFM = 1 [Left Justified Format]
I am using MickroC.
In addition to this,
I got some command while searching over internet as follow: -
value=((ADRESL)|(ADRESH<<8));
where value is a 16 bit integer. But I am confused in ADRESH<<8 , whatever the result is in ADRESH, it should become zero after shifting 8 times. Isn't it?
kindly help me to understand this basic idea.
Thanks in advance.
Imtisal