In: Electrical Engineering
in the MSP430FR6989 what bits are set to “turn on” LCD_B1?
void init_LCD(void)
{
LCDCCTL0 &= ~LCDON; // LCD OFF condition
LCDCCTL0 = LCDDIV_2 + LCDPRE__4 + LCD4MUX + LCDLP; // Freq_lcd = 512 Hz; Freq_frame = 64 Hz
LCDCMEMCTL = LCDCLRM; // clr memory
//LCDCVCTL = LCD2B; // 1/3 bias
LCDCPCTL0 = 0xFFFF; // enable Segments
LCDCPCTL1 = 0xFFFF; // enable segments
LCDCPCTL2 = 0x7FFF; // enable segments
LCDCCTL0 |= LCDON; // Turn of LCD
}