volatile unsigned int Wi; Wi= (0x4000*3)/(0x10); //The compliler will make Wi = 0xfc00 !! //The right answere is Wi = 0x0c00!!
"Getting this right might require the "apply ANSI integer promotions" switch of C51 to be active." Or simply being explicit: 0x4000U