反复调整了RTC时钟,对比度等参数均不理想,用的1/8 Duty, 1/4 Bias 3.3V屏,哪位过来人帮忙看看?谢谢! 以下是初始化参数:
CLK_PeripheralClockConfig(CLK_Peripheral_LCD, ENABLE);
CLK_RTCClockConfig(CLK_RTCCLKSource_LSI, CLK_RTCCLKDiv_1);
/* Initialize the LCD */
LCD_Init(LCD_Prescaler_4, LCD_Divider_31, LCD_Duty_1_8,
LCD_Bias_1_4, LCD_VoltageSource_Internal);
// total 19 segments [seg00:seg18]
/* Mask register*/
LCD_PortMaskConfig(LCD_PortMaskRegister_0, 0xFF);
LCD_PortMaskConfig(LCD_PortMaskRegister_1, 0xFF);
LCD_PortMaskConfig(LCD_PortMaskRegister_2, 0x07);
LCD_PortMaskConfig(LCD_PortMaskRegister_3, 0x00);
LCD_PortMaskConfig(LCD_PortMaskRegister_4, 0x00);
LCD_PortMaskConfig(LCD_PortMaskRegister_5, 0x00);
LCD_ContrastConfig(LCD_Contrast_Level_7);
// LCD_DeadTimeConfig(LCD_DeadTime_1);
LCD_PulseOnDurationConfig(LCD_PulseOnDuration_0);
//LCD_HighDriveCmd(ENABLE);
LCD_Cmd(ENABLE); /*!< Enable LCD peripheral */ |