cancel
Showing results for 
Search instead for 
Did you mean: 

What is setup for minimal current for LCD on STM32L073

MŁask.1
Associate II

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?

2 REPLIES 2

Hello @Maciej �?aski​ ,

You can refer to the following example provided under the L0 Firmware Package:

  • Path: Projects\STM32L073Z-EVAL\Examples\LCD\LCD_Blink_Frequency

I hope this helps.

BeST Regards,

Walid

Mvill.17
Associate III

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