EasyManua.ls Logo

ST STM32F1 Series User Manual

ST STM32F1 Series
31 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
Page #1 background imageLoading...
Page #1 background image
February 2014 DocID025866 Rev 1 1/31
UM1728
User manual
STM32F1xx DALI slave interface
Introduction
This document describes the implementation of the digital addressable lighting interface
(DALI) into the STM32F1xx 32-bit microcontroller family.
The DALI slave library for STM32F1xx microcontrollers simplifies integration of the DALI
slave interface into customer applications. The implementation of DALI into STM32,
together with the various STM32 features (peripherals, computation power, communication
interfaces), is mainly used in light control applications (example, electronic ballast control).
The STM32 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:
STM32VLDISCOVERY
DALI transceiver board (see UM1032: STEVAL-ILM001V1 hardware module)
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).
Useful information and links about DALI interface can be found on http://www.dali-ag.org.
www.st.com
Question and Answer IconNeed help?

Do you have a question about the ST STM32F1 Series and is the answer not in the manual?

ST STM32F1 Series Specifications

General IconGeneral
SeriesSTM32F1
CoreARM Cortex-M3
Operating supply voltage2.0V to 3.6V
Operating temperature-40°C to +85°C
Communication interfacesUSART, SPI, I2C, CAN, USB
ADC12-bit
DAC12-bit

Summary

Introduction

DALI Information

DALI Standard Overview

Overview of the DALI standard, its purpose, properties, and physical/stack layers.

STM32 DALI Slave Library Overview

Describes the STM32F1xx DALI slave library's two-layer structure for integration.

Structure of Final User Application

User Application

Details the user application code structure, its design, and implementation using IAR project files.

I/O Pin Driver Layer

Implements the physical and link layers of the DALI interface using GPIO pins.

Function Description

I/O Pin Driver Layer Functions

Covers interrupt service routines and initialization/data functions for the DALI I/O driver.

dali.c

Contains initialization, event signaling, and command execution functions for the DALI slave library.

dali_cmd.c

Implements DALI commands and auxiliary functions for command processing and timing.

dali_pub.c

Provides lower-level DALI stack functions for light control and parameter access.

dali_reg.c

Manages DALI register operations, including reading, writing, and default states.

eeprom.c

Handles EEPROM emulation for DALI parameter storage and read/write routines.

lite_timer_8bit.c

Implements timing functions for DALI dimming and timeout management.

dali_config.c

Contains DALI stack module configurations and user-definable parameters.

Application Setup

Connections of STEVAL-ILM001V1 and STM32 Discovery Board

Details the required pin connections for hardware setup and testing.

Application Description

Running the PC Software for DALI-STM32

Basic Commands

Explains how to use the PC software for basic commands like addressing ballasts.

Light Level

Details controlling light levels and fading using the PC software's light level window.

References

Revision History