DALI-2 Frames

DALI-2 is a protocol used for digital lighting control. The DALI-2 communication system is usually deployed as a network composed of master or control devices and several slaves or control gears. The communication between devices is wired and is based on a Manchester coding.

All DALI-2 devices in the network are connected using a 2-wire connection line, carrying power and data. The devices exchange data with a baud rate of 1200.

The DALI-2 wire consists of digital data coded using the IEEE 802.3 approach, and the information is packed as a frame. When there is no data exchange over the wire, meaning it is in an Idle state, the line is kept High. The start of the frame is represented by a Start bit, is followed by the payload, and the frame ends with two Stop bits represented by the line left in Idle or High (Figure 1).

Figure 1. DALI-2 Frame

The payload can be:

Figure 2 and Figure 3 describe a DALI-2 frame created or received by a microcontroller. As shown here, the DALI-2 frame starts with a ‘1’ followed by a ‘0’ during the first clock period, being the equivalent of a logic ‘1’, which represents the Start bit. It is followed by two bytes of data for the forward frame (0x26 and 0x24 in Figure 2) or it is followed by a byte of data for the backward frame (0x26 in Figure 3). After the end of the clock generation, the line is left in an Idle state.

Figure 2. Forward Frame
Figure 3. Backward Frame