...the world's most energy friendly microcontrollers
2014-07-02 - Gecko Family - d0001_Rev1.30
467
www.silabs.com
In the table, AREGASC = 10, AREGBSC = 10, ALOGSEL = 1 and the resulting data is to be displayed
on segment lines 7-0 multiplexed with LCD_COM0.
Figure 29.44. LCD Block Diagram of the Animation Circuit
AREGA
AREGB
AREGASC = 1 = > shift left
AREGASC = 2 = > shift right
Odd anim at ion st at es
AREGBSC = 1 = > shift left
AREGBSC = 2 = > shift right
Even anim at ion st at es
ALOGSEL
Dat a Out [7:0]
CLK
EVENT
SEGD0[7:0]
Example 29.2. LCD Animation Enable Example
• Write data into the animation registers LCD_AREGA, LCD_AREGB
• Enable the correct shift direction (if any)
• Decide which logical function to perform on the registers
• ALOGSEL = 0: Data_out = LCD_AREGA & LCD_AREGB
• ALOGSEL = 1:Data_out = LCD_AREGA | LCD_AREGB
• Configure the right animation period (CLK
EVENT
)
• Enable the animation pattern and frame counter (AEN = 1, FCEN = 1)
For updating data in the LCD while it is running an animation, and the new animation data depends on
the pattern visible on the LCD, see the following example.
Example 29.3. LCD Animation Dependence Example
• Enable the LCD interrupt (the interrupt will be triggered simultaneously as the Animation State machine
changes state)
• In the interrupt handler, read back the current state (ASTATE)
• Knowing the current state of the Animation State Machine makes it possible to calculate what data
that is currently output
• Modify data as required (Data will be updated at the next Frame Counter Event). It is important that
new data is written before the next Frame Counter Event.
29.3.12 LCD in Low Energy Modes
As long as the LFACLK is running (EM0-EM2), the LCD controller continues to output LCD waveforms
according to the data that is currently synchronized to the LCD Driver logic. In addition, the following
features are still active if enabled:
• Animation State Machine
• Blink
• LCD Event Interrupt
Summary of Contents for EFM32G
Page 505: ......