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.

CCS/MSP430FR6047: Show all segments efficiently with the LCD module?

Part Number: MSP430FR6047

Tool/software: Code Composer Studio

Hi!

I would like to efficiently show all segments on a 7 (4-mux) LCD using the LCD_C module with as little code as possible. There is a nice blanking feature (AND gate) that puts all segments off with one line of code, but I could not find anything for the opposite. 

Right now I use this code:

    int i, segments =0;
    for(i=0; i<10; i++){
        segments = 0;
        while (segments<0x80){
            segments <<= 1;
            segments +=1;
            HWREG8(LCD_C_BASE + LCDMemoryWriteSelection + i) = segments;
        }
    }

Thanks in advance!

**Attention** This is a public forum