SDAA158 December   2025 MSPM33C321A

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Overview
    1. 1.1 LVGL Project Setup
    2. 1.2 Configuration
    3. 1.3 Initialization
    4. 1.4 LVGL Output
    5. 1.5 LVGL Input
    6. 1.6 LVGL Update
  5. 2LVGL Example
    1. 2.1 Hardware Connections
    2. 2.2 Software
    3. 2.3 LVGL Example Summary
  6. 3Summary
  7. 4Revision History

LVGL Update

For LVGL to properly perform animations and other tasks, LVGL requires a system tick, periodic timer triggers, and sleep management. Additional information on these requirements is listed below:

  • System Tick: LVGL requires that it be notified of time elapsed. This is done by periodically calling the lv_tick_inc functional with the amount of time elapsed in milliseconds. This can be done either in a timer interupt or in the main while loop.
  • Periodic Timer Triggers: LVGL requires that it have dedicated CPU time to handle timers and tasks. This is done by calling lv_timer_handler periodically in a similar fashion to the system tick.
  • Sleep Management: In certain cases, LVGL requires that it be notified when the MCU goes into sleep mode. If using a timer interupt to call lv_tick_inc or lv_timer_handler, this interupt must be stopped so that LVGL returns to the same state when the MCU wakes up.