May I make a humble request if someone could guide me where I
could be making a mistake.
Compiler : WinAVR (GCC) 3.4.5
uC : ATmega16
In my code, I have following line. in either case, I get same
warning. Codes in both cases work on compiling, but the "warning" everytime at compile time, bugs me. I am using
PORTC to output to 8-LEDs, different LEDs "on" to indicate
where my code is progressing while running (at trouble-
shooting time).
PORTC = ~(unsigned char)0xF0;
warning: large integer implicitly truncated to unsigned type
PORTC = ~(0xF0);
warning: large integer implicitly truncated to unsigned type
Thanks to all in advance.
india_AVR