hi I'm programming a microcontroller using MikroC, and I have this variable which is less than 1024 (2^10bit) and I needed to convert that int value;
to unsigned char value8bits;
and put the least significant bits in the unsigned char value2bits;
I was actually thinking of using >> bit shifting don't know how yet? so what do you think ?