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.

MSP430G2553: Integer conversion resuted in truncation

Part Number: MSP430G2553

When trying to reset some bits in P1DIR register, i get this warning "Integer conversion resulted in truncation".

The line that gives problems is this one: P1DIR = ~(BIT1 | BIT7);

I have done it this way with other bits in this register, but i don't know why when i do it with bit7 it shows this warning. Isn't P1DIR an 8 bit register? anyone knows why is this warning popipg up?¿

It probably is a very dumb qüestion but i really cann't find what i am doing wrong here. Thank you very much in advance!

Joan Marc

**Attention** This is a public forum