Application setup UM1728
22/31 DocID025866 Rev 1
4 Application setup
1. Preload the program into the STM32 discovery kit (details in the DALI SW DALI
description).
Note: The current version was compiled with IAR 6.3.
2. Select jumper J3 (of STEVAL-ILM001V1).
a) 1-2 shorted, the direct power supply is selected. It means the module is always
supplied with the same supply voltage as a controlling microcontroller (on
STM32-discovery kit).
b) 2-3 shorted, a controlled supply is selected. The module is supplied through the
GPIO pin of the microcontroller, allowing to disconnect the receiver optocoupler
when not needed (e.g. during transmission) to lower the overall system
consumption.
3. Connect the DALI network cable on connector J1 (DALI DA). There is no need to pay
particular attention to wire polarity as there is an input diode bridge on the module.
4. Make the connections of J2 connector of STEVAL-ILM001V1 and STM32 discovery as
given in the table below and also connect the PC9 pin of the STM32 discovery board to
the PA6 pin of the same board to see the effect on LED3 on STM32 discovery board as
shown in Figure 9.
Figure 6. Bottom side connectors
Table 1. Connections of STEVAL-ILM001V1 and STM32 discovery board
STEVAL-ILM001V1 pins(J2) STM32 discovery pins
VDD (pin 1) 3V3
GND (pin 2) GND
RX_Supply (pin 5) PB9
S1 (pin 6) PB8
DALI_TX (pin 9) PB1
DALI_RX(pin 10) PB0