From: Olgierd E. <ol...@te...> - 2006-04-25 19:22:59
|
On Tue, 2006-04-25 at 14:58 -0400, Oberholtzer,Stephen wrote: > ; .line 11; makeword.c _tmr1 = (TMR1L)|(TMR1H<<8); The problem here is the precedence of operators because TMR1H<<8 has biggest priority than the | operator, to solve it do it by parts: unsigned int res; res = (unsigned int)TMR1L; // do the cast res = res | ((unsigned int)TMR1H)<<8; // now the rest That should solve the problem Olgierd |