2022-05-11 12:34 AM
I have LCD connected to Nucleo with STM32L073. I have configured the clocks and low power mode so with EVERYTHING turned off I get 1uA of current.
Now using cube ide I have added configuration for LCD:
hlcd.Instance = LCD;
hlcd.Init.Prescaler = LCD_PRESCALER_1;
hlcd.Init.Divider = LCD_DIVIDER_31;
hlcd.Init.Duty = LCD_DUTY_1_4;
hlcd.Init.Bias = LCD_BIAS_1_3;
hlcd.Init.VoltageSource = LCD_VOLTAGESOURCE_INTERNAL;
hlcd.Init.Contrast = LCD_CONTRASTLEVEL_5;
hlcd.Init.DeadTime = LCD_DEADTIME_0;
hlcd.Init.PulseOnDuration = LCD_PULSEONDURATION_4;
hlcd.Init.HighDrive = LCD_HIGHDRIVE_0;
hlcd.Init.BlinkMode = LCD_BLINKMODE_OFF;
hlcd.Init.BlinkFrequency = LCD_BLINKFREQUENCY_DIV8;
hlcd.Init.MuxSegment = LCD_MUXSEGMENT_DISABLE;
And after that I get 15 uA of current. Datasheet on page 86 says that I should have 2.6uA of additional current for LCD driver.
How to initialize LCD display to achive what is in documentation?
2022-05-17 04:17 AM
Hello @Maciej �?aski ,
You can refer to the following example provided under the L0 Firmware Package:
I hope this helps.
BeST Regards,
Walid
2022-07-13 12:46 PM
Before entering the STOP you've to deinit the LCD. In the function which deinit the low level skip the function that disable the LCD and reconfig the pins as analog.
I did this and achieved exacly 2,6uA
Bye