UM1728
The DALI stack is hardware independent. It calls the I/O pin driver for low level hardware
dependent functions. After initialization of the DALI stack layer (after calling initialization
functions), most of the tasks run automatically. Tasks include receiving commands and
running timer tasks (light dimming, timeouts).
Note:
To get the complete source code of DALI STACK library, please contact nearest sales office.
2.2
I/O pin driver layer
The I/O pin driver layer of the DALI slave library implements physical and link layers of the
DALI interface. The DALI protocol requires two pins for communication. The I/O pin driver
layer implements reception and transmission through direct control of two arbitrary GPIO
pins. It also controls the required DALI speed and correct bit timing, solves DALI bus error
recovery, and collects received bits into DALI frames (using address and command bytes).
Figure 4
The I/O pin driver layer occupies one timer (systick timer), one GPIO interrupt, one timer
interrupt, and direct control of two GPIO pins (assignment of which is software selectable).
Figure 3. Structure of DALI stack layer
displays the structure of the DALI I/O pin driver layer
Figure 4. Structure of I/O pin driver layer
DocID025866 Rev 1
Structure of final user application
9/31
31
Need help?
Do you have a question about the STM32F1 Series and is the answer not in the manual?
Questions and answers