FR6972 LCD显示功耗近20UA,FR4133 LCD显示功耗只有6UA;
电路差不多,区别就在R23/LCDCAP 接4.7uF,而FR4133 接0.1uF
VSS--4.7uF -| R23/LCDCAP
VSS--0.1uF -|R03
VSS--0.1uF -|R13
VSS--0.1uF -|R23
程序设置有错吗?
void CLOCK_Config() // MSP430FR6972
{
PJSEL0 = BIT4 | BIT5; // For LFXT
// Configure LFXT 32kHz crystal
CSCTL0_H = CSKEY >> 8; // Unlock CS registers
CSCTL4 &= ~LFXTOFF; // Enable LFXT
do
{
CSCTL5 &= ~LFXTOFFG; // Clear LFXT fault flag 清除 LFXT 失效标志
SFRIFG1 &= ~OFIFG;
} while (SFRIFG1 & OFIFG); // Test oscillator fault flag 如果失效标志存在
CSCTL0_H = 0; // Lock CS registers
}
void LCD_Config(void) // MSP430FR6972
{
//Initialize LCD segments 0 - 15; 18 - 21; 24 ; 28 - 30
LCDCPCTL0 = 0xFFFF;
LCDCPCTL1 = 0x713C;
LCDCPCTL2 = 0x0000; //设置LCD管脚 L0 - L15; L18 - L21; L24 ; 28 - 30 pins selected
// Initialize LCD_C
// ACLK, Divider = 1, Pre-divider = 16; 4-pin MUX
LCDCCTL0 = LCDDIV__1 | LCDPRE__16 | LCD4MUX | LCDLP;
// VLCD generated internally,
// V2-V4 generated internally, v5 to ground
// Set VLCD voltage to 2.60v
// Enable charge pump and select internal reference for it
LCDCVCTL = VLCD_2_96 | VLCDREF_0 | LCDCPEN;
LCDCCPCTL = LCDCPCLKSYNC; // Clock synchronization enabled
LCDCMEMCTL = LCDCLRM; // Clear LCD memory
//Turn LCD on
LCDCCTL0 |= LCDON; // 打开LCD
} |