volatile unsigned int Wi; Wi= (0x4000*3)/(0x10); //The compliler will make Wi = 0xfc00 !! //The right answere is Wi = 0x0c00!!