Advertisement

Quick Links

DALI Low Level Driver
MANUAL

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DALI and is the answer not in the manual?

Questions and answers

Summary of Contents for MBS DALI

  • Page 1 DALI Low Level Driver MANUAL...
  • Page 2: Table Of Contents

    Example ....................9 PCIO-Interrupt (STM32xx), example ..........10 8 Modul dali_ll_hal.c ............13 9 Function dali_init ............... 18 10 Data exchange – DALI low-level driver  API ..24 11 General ................25 12 Product support ..............26 DALI low level driver...
  • Page 3: Introduction

    SUBMENU / ... form. Screenshots The essential illustrations show the software under a Microsoft Windows 10 installation. Target group These instructions are intended for specialist personnel, who are familiar with programming and network configuration. DALI low level driver Introduction 3 von 26...
  • Page 4: Safety

    Under certain circumstances, this can lead to serious injuries or death. The configuration of the software should therefore only be carried out by specialist personnel who are familiar with the network and driver configuration! DALI low level driver Safety 4 von 26...
  • Page 5: Classification And Purpose

    Classification and purpose Classification Driver software to enable the communication of microcontrollers with DALI hardware. Hereinafter referred to as the Low Level Driver (LLT). DALI Architecture Purpose In DALI architecture, the Low Llevel Driver enables DALI-APIs, and therefore DALI-Applications, to communicate with the current hardware and thus the DALI bus.
  • Page 6: Structure And Features

    The processing of queues is initiated in the main program or in a DALI thread in multi-tasking environments. As the driver is able to support several instances of DALI-API on one hardware, several DALI devices (e.g. one LED and one application controller) can exist on a single hardware.
  • Page 7: Hardware Requirements

    The read GPIO must provide an interrupt in the event of a level change. Hardware timer Minimum resolution 10 µs, an interrupt must be available. Bus width 32 Bit, minimum frequency 32 MHz. DALI low level driver Hardware requirements 7 von 26...
  • Page 8: Signalling

    The signaling does not have to contain a queue, just signal that something is to be done. When a message is received, all DaliQueues are processed in full. Note If this mechanism is not used, the callback must be initialized with NULL. DALI low level driver Signalling 8 von 26...
  • Page 9: Dali Low Level Driver - Main Program

    DALI Low Level Driver - Main program Example Explanation dalill_inithardware() function contains everything needed to initialize the target hardware. It may be necessary to access an automatically generated code. Here the PCIOs and the timer are initialized. The timer is not yet...
  • Page 10: Pcio-Interrupt (Stm32Xx), Example

    HA L _T I M_R e gi ste rCa ll ba c k( & hti m1 6 , HA L _T I M_ PE R I OD _E LA PS E D _ CB _I D , da li ll _ti me r I nte r ru pt) ; DALI low level driver DALI Low Level Driver - Main program 10 von 26...
  • Page 11 . The callbacks are used to test, set and reset the DALI bus lines. The level HIGH or LOW relates to the DALI bus and not the value of the PCIO. When the PCIO drives the DALI bus in an inverted way,...
  • Page 12 10 ms at the latest in IDLE state. This or the timing helper are suitable for making an LED flash (for example), thereby signalling the readiness of the driver. DALI low level driver DALI Low Level Driver - Main program 12 von 26...
  • Page 13: Modul Dali_Ll_Hal.c

    T ime r , In t e r ru pt s, e t c. * C op yr ig ht (c ) b y mb s Gm bH , K re fe l d, i n fo @ mbs -s o ftw a re .de * Al l r ig ht s r e se r ve d .
  • Page 14 6 .I ni t.P e rio d + 1; vo id da l il l_ sta rtT i me r( ) H AL _T IM _ Ba se _ Sta rt _IT ( & hti m 16 ); DALI low level driver Modul dali_ll_hal.c 14 von 26...
  • Page 15 IR Q () __ e na ble _ irq () ; vo id di sa b le IR Q() __ di sa b le _ir q() ; DALI low level driver Modul dali_ll_hal.c 15 von 26...
  • Page 16 "getTimerPeriod" returns the current maximum value of the timer. Note If this behavior cannot be achieved by the timer of the target hardware, it must be simulated in order for the low level driver to function properly. DALI low level driver Modul dali_ll_hal.c 16 von 26...
  • Page 17 I/O queues in the interrupt are atomic. Because this action is different on each target hardware, it was moved to callbacks. Note If this mechanism is not used, the callback must be initialized with NULL. DALI low level driver Modul dali_ll_hal.c 17 von 26...
  • Page 18: Function Dali_Init

    Da l i Sta c kI nst a n ce = da l ili b _c re a te i nsta n ce (); i f ( N UL L == p Da li Sta c kI ns ta n ce ) / / er ro r re t u rn ; DALI low level driver Function dali_init 18 von 26...
  • Page 19 (R _ D AL I LI B_ OK ! = da l ili b _i nit (p Da l iS ta ck In sta n ce LE D , &ct rl _g e a r _ co n fi g)) DALI low level driver Function dali_init...
  • Page 20 // c re a te a l l da ta f or L L -D ri ve r a nd sta rt th e tim e r da lil l _c re a te Ba s e (& d a lil l_ ba s e ) ; DALI low level driver Function dali_init...
  • Page 21 PCIO and the DALI bus. This is necessary to ensure the driver does not interpret its own signals as a collision when sending and thereby block itself.
  • Page 22 The naming of the parameters refers to the change to the target state HIGH or LOW. Examples In the following example, both times are too short: tx_high_offset After reducing by 10 microseconds, the following picture is obtained: DALI low level driver Function dali_init 22 von 26...
  • Page 23 The optimal offset is in the middle between the lower and the upper determined value. With this, an error free reception should be possible. rx_high_offset rx_low_offset normally have the same values. DALI low level driver Function dali_init 23 von 26...
  • Page 24: Data Exchange - Dali Low-Level Driver  Api

    10 Data exchange – DALI low-level driver  API dalill_toDaliLib The Low Level Driver sends messages to the API via the function, as in the following example: /* * * ** * * * ** * * * * ** * * * ** * * * * ** * * * * ** * * * * * ** * * * * ** * * * * ** * * * * * ** * */...
  • Page 25: General

    11 General The DALI low-level stack is usually supplied with a sample application to demonstrate the functioning of the processes described here. DALI low level driver General 25 von 26...
  • Page 26: Product Support

    Römerstraße 15 47809 Krefeld Telephone +49 21 51 72 94-0 +49 21 51 72 94-50 E-Mail support@mbs-solutions.de Internet www.mbs-solutions.de wiki.mbs-software.info Service times Monday to Friday: 8:30 to 12:00 13:00 to 17:00 DALI low level driver Product support 26 von 26...

Table of Contents