sarathsnairpoonjar
Member level 2
- Joined
- Nov 12, 2012
- Messages
- 50
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 1,288
- Location
- Cochin,Kerala,India
- Activity points
- 1,560
i am using below equation to combine CCP result registers
var=(CCPR1H<<8)+CCPR1L
But the value in var is not always correct,let me say..
i am viewing CCPR1H , CCPR1Land var separately in an Lcd ...
when
CCPR1H=1 and CCPR1L=205 var contains 205
when
CCPR1H=2 and CCPR1L=57 var contains 569
in the second case above equation seems to be fine ,then why it is not working when the msb is 1,
anybody have a solution?, please help me...
var=(CCPR1H<<8)+CCPR1L
But the value in var is not always correct,let me say..
i am viewing CCPR1H , CCPR1Land var separately in an Lcd ...
when
CCPR1H=1 and CCPR1L=205 var contains 205
when
CCPR1H=2 and CCPR1L=57 var contains 569
in the second case above equation seems to be fine ,then why it is not working when the msb is 1,
anybody have a solution?, please help me...