cancel
Showing results for 
Search instead for 
Did you mean: 

Question for LCD Blink feature.

ubcho
Associate
Posted on August 30, 2016 at 01:18

I'm using STM32L073 with LCD glass module.

The LCD glass has 27 segments, 1/3 bias.

I'm going to blink up to specific pixels(seg10, com3) using the BLINK bits in the LCD_FCR register.

In reference manual, Blink mode has 4 selection. 

1. Blink disabled

2. Blink on SEG[0], COM[0]

3. Blink on SEG[0], all COMs

4. Blink all SEGS and all COMs

It's seems to only control SEG[0]. Is it possible to control other segment?

Thanks.

#lcd #blink
1 REPLY 1
Walid FTITI_O
Senior II
Posted on August 30, 2016 at 17:10

Hi Ryan, 

I recommend the ''LCD_Discplay_text'' example in

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubel0.html

at this path: STM32Cube_FW_L0_V1.7.0\Projects\STM32L073Z_EVAL\Applications\LCD\LCD_Display_Text

There is a Hal dunction called __HAL_LCD_BLINK_CONFIG() which Configure all LCD segments and Coms to blink at a selected frequency.  It has a prameter''__BLINKMODE__'' that defined the LCD_BlinkMode which can be one of the following:

* LCD_BLINKMODE_OFF:           Blink disabled

* LCD_BLINKMODE_SEG0_COM0:     Blink enabled on SEG[0], COM[0] (1 pixel)

* LCD_BLINKMODE_SEG0_ALLCOM:   Blink enabled on SEG[0], all COM (up to 8  pixels according to the programmed duty)

*  LCD_BLINKMODE_ALLSEG_ALLCOM: Blink enabled on all SEG and all COM 

I recommend that you check also following ressources:

* Section ''17.4.4  Segment driver'' , page 385, in STM32L0

http://www.st.com/content/ccc/resource/technical/document/reference_manual/2f/b9/c6/34/28/29/42/d2/DM00095744.pdf/files/DM00095744.pdf/jcr:content/translations/en.DM00095744.pdf

reference manual

* The application note

http://www.st.com/content/ccc/resource/technical/document/application_note/b7/e1/f0/42/5e/95/4d/e5/CD00176444.pdf/files/CD00176444.pdf/jcr:content/translations/en.CD00176444.pdf

LCD glas driver  firmware which might be helpful for you.

-Hannibal-