Вы находитесь на странице: 1из 27

DALI protocol

July 2004
Paolo Oteri application eng. MCD

Available Application Note and documents


AN1601 - Software Implementation for ST7DALI-EVAL AN1900 - Hardware Implementation for ST7DALI-EVAL AN1756 - Choosing a DALI Implementation Strategy with ST7DALI
You can find updated information visiting the web page http://www.stmcu.com, then select application / lighting and search in the Application Note area or Evaluation Board Doc
2

CD folder description
Draft of the DALI

Datasheets of all the ST components used Hex file of the master + source files of the slave ST7DALI-EVAL User Manual Boards schematics
Installation program

ST & DALI
What is DALI ? Digital Addressable Lighting Interface
International Standard for Lighting controls solutions designed by all leading control equipment manufacturers to offer a standard to the lighting market This interface is currently in the process of international standardization and will be included in IEC929 Official site www.dali-ag.org Some members are: DIAL HELVAR HCO LUTRON OSRAM PHILIPS LIGHTING TRIDONIC

ST & DALI
DALI characteristics

Master-Slave architecture Installation of many types of sensors (light sensors, passive IR sensors, etc.) Free topology installation Instruction set optimized for lighting applications

ST & DALI
Advantages
Individual Control of Lamps. Each unit in the DALI network has its own individual address and can be controlled independently. 1 2 3 4 5 6 7

Individual Control of Lamps. 21 23 24 22 20 Each unit in the DALI network has its own 10 individual address and can be controlled independently. 25 26 27 28 29 9 30 31 32 33 34 35 36 17 37 16 38 39 14 13

11 12

19

18

15

ST & DALI
Advantages
Simple Wiring. All of the units in the system are interconnected using a simple five-core cable with few restrictions on topology. Up to 64 devices can be connected with a maximum cable length of 300 meters.

DALI
Slave

DALI
Slave

DALI
Slave

L N
DALI DALI
Sensors

DALI
Switches

DALI Control unit


7

ST & DALI
Advantages
Multi-Channeling. A single control cable can be used to control several different groups of lamps.
Group 1: Halogen lamp on table Group 2: Circular Fluorescent Lamps Group 3: Halogen lamp on the walls Group 4: Halogen lamp near whiteBoard Group 5: Halogen lamp behind

ST & DALI
Advantages
No Mains Switching Required. Lamps can be dimmed or switched on and off using control system commands without any need of mains switching.
Push button Ceiling multisensor IR remote control

ST & DALI
Advantages

Easy System Re-Configuration. The operation of the system can be changed quickly without any modification to the hardware. Easy System Modification. If the lighting system needs to be enlarged, new components can be added anywhere on the DALI cable. Existing units can easily be reconfigured to suit changing usage patterns.

10

ST & DALI
Advantages
Back-Channelling. The information flow on the connecting cable is bidirectional. In addition to the commands from controllers, the cable can also carry status information on the lamp's operating condition.

Possible information from Slave to Master are: a) b) c) d) Lighting level Node status Fault condition

11

ST & DALI
Advantages
Is possible to define SCENES. Scene means: a particular light level intensity as shown in the next figures. Maximum 16 scenes can be defined.

100% power

30% power

5% power

12

ST & DALI
Installation methods

Method 1
DALI
Slave

Method 2
DALI
Slave

DALI
Slave

DALI
Slave

DALI
Slave

DALI
Slave

Sensors

Switches

DALI
Sensors

DALI
Switches

DALI Control unit

DALI Control unit

13

Net characteristics
Maximum node in the net: 64 Groups defined: Max 16 Connecting wires: 2L+PE+2wire DALI lines

ST & DALI

Electrical specifications
Maximum voltage reduction: 2V between sender and receiver Logical level LOW: from 4.5V to 4.5V Logical level HIGH: from 9.5V to 22.5V Current limits: Slave during receive mode less than 2mA
During Slave transmission mode the power supply limits the current to less than 250mA

14

ST & DALI
Voltage and current levels for forward and backward channeling at the ballast's digital interface terminals

15

ST & DALI
Required timing at the ballast terminals of the digital interface.

16

ST & DALI
Voltage rating

17

ST & DALI
Level 2
(ISO/OSI)

Access technique: Start trasmission master node Bit codification: Manchester bi-phase Bi-phase coding Transmission speed: 1200bps 1 0 Frame: Master to Slave 16 bit ----- Slave to Master 8 bit Frames rejected: if not completed or with error in manchester coding

Level 3
broadcast

(ISO/OSI)

Address management: node address, group address and

18

ST & DALI
Timing requirements for transmission
1) 2) The settling time between two subsequent forward frames shall be 9.17 ms minimum. The settling time between forward and backward frames shall be 2.92 - 9.17 ms. The control unit shall wait up to 9.17 ms. If no backward frame has been started after 9.17 ms this shall be interpreted as no answer. The settling time between backward and forward frames shall be at least 9.17 ms. >=9.17ms Forward Frame Forward Frame >=9.17ms 2.92 to 9.17ms Forward Frame Backward Frame >=9.17ms Forward Frame

3)

19

ST & DALI
Frame structure
Bi-phase coding 1 0
A forward frame shall consist of bi-phase coded bits: 1 start bit (logical 1), 1 address byte and 1 data byte. The frame shall be terminated by 2 stop bits (idle). The stop bits shall not contain any change of phase.

A backward frame shall consist of bi-phase coded bits: 1 start bit (logical 1) 1 data byte and 2 stop bits (idle).

20

DALI Application: Gateway topology

21

DALI Application: Ballast controller topology

22

ST7 & DALI


Features Program memory RAM (stack) Data EEPROM ST7FDALI 8K bytes 384 (128) bytes 256 bytes Lite Timer with Watchdog, Autoreload Timer with 32-MHz input clock, SPI, 10-bit ADC with Op-Amp, DALI 2.4V to 5.5V Up to 8Mhz (w/ int 1MHz RC 1% PLLx8/4MHz) -40C to +85C (-40C to +105/125C optional) SO20 300
23

Peripherals

Operating Supply CPU Frequency

Operating Temperature Packages

ST 7 & DALI
Implemented application

24

ST7 & DALI PC interface


Communication EAR Group Slave nodes Scenes

Light regulator
25

ST7 & DALI Slave Schematic


12VDC J4 1 2 3 U6 LD2980A BU50TR 1 LD1 + C2 1uF 16V C3 1uF 16V C4 100nF 50V HS MG-C670 LD2 HS MS-C670HE 3 2 R1 2K49 0.1% 20 19 18 17 16 15 14 13 12 11 5VDD J3 U4 1 2 1 2 4 3 SFH6156-2 R10 332R 0.1% + C7 22uF 20V R13 1K21 0.1% R14 3K16 0.1% 1 R11 4R7 1% 3 Q1 2 BC817-25 D5 BZX 284C 2V 7 4 BA S16 3 11K 0.1% D6 R9 1 2 U5 1 2 4 3 SFH6156-2 R12 10K 1% 4 3 R7 0 1% R2 2K49 0.1% R3 82K5 0.1% C5 100nF 50V C1 100nF 50V 1..10V 6 U2A TS 2711CD 2 1 J2 5VDD 5VDD OUT 5VDD 12VDC Current-test J1 12VDC DALI Bus 4 3 2 1 +

G ND

IN

MC 1,5/4-G U3 RE SET 1 2 3 4 5 6 7 8 9 10 VS S OS C1/CLKIN VDD OS C2 RE SET PA 0(HS )/LTIC SS /AIN0/PB0 PA 1(HS )/ATIC SCK/A IN1/PB1 PA 2(HS )/ATPWM0 MISO/AIN2/P B2 PA 3(HS )/ATPWM1 MOSI/AIN3/P B3 PA 4(HS )/ATPWM2 CLK IN/AIN4/P B4PA 5(HS )/ATPWM3/ICCDA TA AIN5/PB5 PA 6/MC0/ICCCLK /B REAK DA LIIN/A IN6/PB6 PA 7/DA LIOUT ST 7FDALIF2MX

7
+ -

R4 10K 1%

MB 2S 4 + D4 - 3

5VDD

R16 4K7 C6 100nF

LD3 LYT 670

R8 0 5VDD

5VDD

R15 150K 1%

R5 10K 1%

R6 3k3 0.1%

ST7FDALI

RE SET

10 8 6 4 2

+ + + + +

+ + + + +

9 7 5 3 1

CON10AP

1..10V interface

TP 1 TP 2 TP 3

1 HOLE 1 HOLE 1 HOLE 1 HOLE

DALI interface
Ti tl e DA LISLA VE Si ze A4 Date: Document Number CS .INT0002.01.01 Friday, September 19, 2003 Sheet

TP 4

Rev 1 1 of 1

26

ST7DALI Application: Gateway topology


What is the minimum needed? A timer for all time-base purpose. 26 bytes of EEPROM, to save persistent parameters like for example the minimum dim level. What is embedded in ST7FDALI 8-bit Lite Timer 256 bytes data internal EEPROM

3Kbytes program memory

8 Kbytes single voltage extended Flash (XFlash) Program memory DALI communication module (DCM). The DCM is able to receive or transmit a serial DALI signal using a 16-bit shift register, an edge detector, several data/control registers and arbitration logic. Halt power saving mode Up to 15 multifunctional bi-directional I/O lines, One 12-bit Auto-reload Timer with 4 PWM outputs, input capture and output compare functions Internal 1% RC oscillator,
27

A timer with Input Capture/Output Compare capabilities to receive and transmit DALI signals.

Low-consumption mode, to save energy between commands. I/Os and PWM outputs to perform the interface with the ballast controller.

A clock source

Вам также может понравиться