March 2011 Doc ID 18098 Rev 1 1/27
AN3298
Application note
STM8S DALI slave library
Introduction
This document describes the implementation of the Digital Addressable Lighting Interface
(DALI) into the STM8S 8-bit microcontroller family.
The DALI slave library for STM8S microcontrollers simplifies integration of the DALI slave
interface into customer applications. The implementation of DALI into STM8S, together with
the various STM8S features (peripherals, computation power, communication interfaces), is
mainly used in light control applications (example, electronic ballast control).
The STM8S DALI slave library was tested according to the DALI specification.
The DALI slave library comes with a simple application example (DALI slave device). The
example was designed (and tested) for use with the following evaluation boards:
● STM8S-DISCOVERY (see UM0817, STM8S-DISCOVERY)
●
DALI transceiver board (see UM1032: STEVAL-ILMOO1V1 hardware module for the
STM8S-DISCOVERY interface for DALI communication).
The application example controls the light of the on-board LED diode. Light intensity is
controlled by the PWM method using a built-in timer. The external DALI master device must
control this application example (which is the DALI slave device). The DALI master devices
were tested using the ST7DALI evaluation kit (master device board and PC software) and
commercial DALI controller from Osram.
The user can use the provided example as a starting point for writing an application using
the STM8S DALI slave library.
Useful information and links about DALI interface can be found on http://www.dali-ag.org.
www.st.com