This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IAR操作环境在MSP430单片机中左移16位,24位时 8位转32位时出问题,如何解决。




unsigned long Time;

Time|= buffer[6];
Time|= buffer[7]<<8;
Time|= (unsigned long)(buffer[8]<<16);
Time|= (unsigned long)(buffer[9]<<24);