TIDUFB0 July   2025

 

  1.   1
  2.   Description
  3.   Resources
  4.   Features
  5.   Applications
  6.   6
  7. 1System Description
    1. 1.1 Input Devices (DALI 103)
    2. 1.2 Control Gear (DALI 102)
    3. 1.3 Control Devices (Application Controllers)
    4. 1.4 Introduction
  8. 2System Overview
    1. 2.1 Block Diagram
    2. 2.2 Design Considerations
      1. 2.2.1 Manchester Encoding
      2. 2.2.2 Using Opto-Emulators Instead of Optocouplers
    3. 2.3 Highlighted Products
      1. 2.3.1 MSPM0G350x
      2. 2.3.2 ISOM8111
        1. 2.3.2.1 ISOM8111 Features
  9. 3Hardware, Software, Testing Requirements, and Test Results
    1. 3.1 Hardware Requirements
    2. 3.2 Software Requirements
      1. 3.2.1 DALI Stack Layer
    3. 3.3 Test Setup
      1. 3.3.1 Configuring the PIR
    4. 3.4 Test Results
      1. 3.4.1 Event Message When PIR Detects a Motion
      2. 3.4.2 Event Message Generation Through Report Timer
  10. 4Design and Documentation Support
    1. 4.1 Design Files
      1. 4.1.1 Schematics
      2. 4.1.2 BOM
      3. 4.1.3 PCB Layout Recommendations
        1. 4.1.3.1 Layout Prints
    2. 4.2 Tools and Software
    3. 4.3 Documentation Support
    4. 4.4 Support Resources
    5. 4.5 Trademarks
  11. 5About the Authors

DALI Stack Layer

This section includes the DALI stack software, Figure 3-2 shows the DALI stack layer.

TIDA-010963 DALI Stack LayerFigure 3-2 DALI Stack Layer

The following list provides a detailed explanation of the structure along with the functions implemented.

  1. dali_103
    • dali_103_command (.h and .c files)
      • Contains the declarations and definitions for the DALI Commands specified in the standard IEC 62386-103: General Requirements for Control Device.
    • dali_103_variables.h
      • defines the structures, enumerations, and macros for control device variables as given in the DALI 103 spec.
  2. dali_303
    • dali_303_command (.h and .c files)
      • Contains the declarations and definitions for DALI 303 Commands specified in the standard IEC 62386-303: Particular Requirements – Input Devices – Occupancy Sensor
    • dali_303_variables.h
      • defines the structures, enumerations, and macros for Part 303 input device variables as given in the DALI 303 spec.
    • pir_interface (.h and .c files)
      • Contains declarations and definitions for configuring the PIR sensor and interpreting the digital output.
  3. dali_cd_comm (.h and .c files)
    • Contains the declarations and definitions for DALI Software module initialization and command handling.
  4. dali_gpio_comm (.h and .c files)
    • Contains the declarations and definitions for configuring the Timer for receiving and transmitting Manchester encoded frame through DALI RX and TX respectively.
  5. dali_main.c
    • Contains the DALI Software stack main function loop.
  6. dali_timings.h
    • defines macros for timing-related parameters as given in the spec.
  7. eeprom_emulation_type_a (.h and .c files)
    • Existing design in MSPM0 SDK is integrated for storing certain DALI variables in flash.
    • Type B design can also be used if the user needs to store small variable data.
    • For additional information, see also the EEPROM emulation Type A Design application note.