Dali 2-0
Dali 2-0
Introduction
This document will guide the user with how to start with the DALI 2.0 Slave board design based on the
ATtiny817 microcontroller.
For this engagement board, the hardware design files (schematic, BOM, and PCB Gerber) and software
source code can be downloaded from the Microchip website. The provided hardware documentation can
be used with no limitations to manufacture the reference hardware solution for the design.
The source code and firmware user guide can be downloaded from http://www.microchip.com/.
Features
• Highly reliable design within -40°C to +105°C
• DALI 2.0 Slave function
• Programming and debugging of the ATtiny817 through UPDI interface
Table of Contents
Introduction......................................................................................................................1
Features.......................................................................................................................... 1
1. Overview....................................................................................................................3
1.1. System Overview......................................................................................................................... 3
1.2. DALI Interface.............................................................................................................................. 3
1.3. MCU Connection.......................................................................................................................... 5
2. User Interfaces.......................................................................................................... 6
2.1. USB Power Supply.......................................................................................................................6
2.2. DALI Bus Connector.....................................................................................................................7
2.3. UPDI Header................................................................................................................................ 7
2.4. Status LEDs................................................................................................................................. 9
2.5. Lighting LED...............................................................................................................................10
2.6. ISP/SPI Header.......................................................................................................................... 11
2.7. Button......................................................................................................................................... 12
3. Firmware..................................................................................................................14
3.1. Firmware Programming..............................................................................................................14
4. System Setup.......................................................................................................... 16
4.1. DALI Master............................................................................................................................... 16
4.2. System Control...........................................................................................................................16
5. Revision History.......................................................................................................17
Customer Support......................................................................................................... 18
Legal Notice...................................................................................................................19
Trademarks................................................................................................................... 19
1. Overview
®
The DALI 2.0 Slave on the ATtiny817 board is intended to demonstrate the ATtiny817 tinyAVR 8-bit
microcontroller.
2. User Interfaces
The on-board interfaces for the user include USB power supply socket, DALI bus connector, and UPDI
header. The Status LEDs and the Lighting LED can be used for indicating.
There are some parts reserved and not mounted, including the ISP/SPI header and the Button.
The USB power supply requires the standard power with voltage tolerance from 4.85V to 5.25V. The
power consumption of the board is quite low for the USB port. Any USB port with 100 mA or higher output
capability can power the board.
The USB socket supports the micro-USB cable only. The connection is shown in the figure below.
Figure 2-1. USB Power Supply to the Board
Pin Name
1 NC
2 GND
3 UPDI_RESET
4 VCC
5 RESET
6 NC
7 NC
8 NC
9 NC
10 NC
2.7 Button
A button is designed for the board, but is not functional and not mounted by default on this board. It is
open for the user to use it freely.
The button connects on the PC5 pin of ATtiny817.
Figure 2-13. The Button
Note: Resistor R106 (39Ω, 0402, ±1%) should be mounted in series with button SW101 if the user must
use SW101.
3. Firmware
A default firmware is pre-programmed in the ATtiny817 microcontroller. It fully follows the standard DALI
2.0 protocol. The firmware can also be updated or re-programmed via the UPDI interface.
4. System Setup
To build the DALI system, a DALI Master and a DALI Bus Power Supply are needed. The system should
be set up as the figure below.
Figure 4-1. DALI System Setup
Note: The DALI Master Kit illustrated above can be treated as an example, assume it already contains
the DALI bus power supply, while the 16 VDC adapter is the power supplier of the DALI bus.
5. Revision History
Doc Rev. Date Comments
A 08/2017 Initial document release.
Microchip provides online support via our web site at http://www.microchip.com/. This web site is used as
a means to make files and information easily available to customers. Accessible by using your favorite
Internet browser, the web site contains the following information:
• Product Support – Data sheets and errata, application notes and sample programs, design
resources, user’s guides and hardware support documents, latest software releases and archived
software
• General Technical Support – Frequently Asked Questions (FAQ), technical support requests,
online discussion groups, Microchip consultant program member listing
• Business of Microchip – Product selector and ordering guides, latest Microchip press releases,
listing of seminars and events, listings of Microchip sales offices, distributors and factory
representatives
Microchip’s customer notification service helps keep customers current on Microchip products.
Subscribers will receive e-mail notification whenever there are changes, updates, revisions or errata
related to a specified product family or development tool of interest.
To register, access the Microchip web site at http://www.microchip.com/. Under “Support”, click on
“Customer Change Notification” and follow the registration instructions.
Customer Support
Note the following details of the code protection feature on Microchip devices:
• Microchip products meet the specification contained in their particular Microchip Data Sheet.
• Microchip believes that its family of products is one of the most secure families of its kind on the
market today, when used in the intended manner and under normal conditions.
• There are dishonest and possibly illegal methods used to breach the code protection feature. All of
these methods, to our knowledge, require using the Microchip products in a manner outside the
operating specifications contained in Microchip’s Data Sheets. Most likely, the person doing so is
engaged in theft of intellectual property.
• Microchip is willing to work with the customer who is concerned about the integrity of their code.
Legal Notice
Information contained in this publication regarding device applications and the like is provided only for
your convenience and may be superseded by updates. It is your responsibility to ensure that your
application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY
OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS
CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE.
Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life
support and/or safety applications is entirely at the buyer’s risk, and the buyer agrees to defend,
indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting
from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual
property rights unless otherwise stated.
Trademarks
The Microchip name and logo, the Microchip logo, AnyRate, AVR, AVR logo, AVR Freaks, BeaconThings,
BitCloud, CryptoMemory, CryptoRF, dsPIC, FlashFlex, flexPWR, Heldo, JukeBlox, KeeLoq, KeeLoq logo,
Kleer, LANCheck, LINK MD, maXStylus, maXTouch, MediaLB, megaAVR, MOST, MOST logo, MPLAB,
OptoLyzer, PIC, picoPower, PICSTART, PIC32 logo, Prochip Designer, QTouch, RightTouch, SAM-BA,
SpyNIC, SST, SST Logo, SuperFlash, tinyAVR, UNI/O, and XMEGA are registered trademarks of
Microchip Technology Incorporated in the U.S.A. and other countries.
ClockWorks, The Embedded Control Solutions Company, EtherSynch, Hyper Speed Control, HyperLight
Load, IntelliMOS, mTouch, Precision Edge, and Quiet-Wire are registered trademarks of Microchip
Technology Incorporated in the U.S.A.
Adjacent Key Suppression, AKS, Analog-for-the-Digital Age, Any Capacitor, AnyIn, AnyOut, BodyCom,
chipKIT, chipKIT logo, CodeGuard, CryptoAuthentication, CryptoCompanion, CryptoController,
dsPICDEM, dsPICDEM.net, Dynamic Average Matching, DAM, ECAN, EtherGREEN, In-Circuit Serial
Programming, ICSP, Inter-Chip Connectivity, JitterBlocker, KleerNet, KleerNet logo, Mindi, MiWi,
motorBench, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient
Code Generation, PICDEM, PICDEM.net, PICkit, PICtail, PureSilicon, QMatrix, RightTouch logo, REAL
ICE, Ripple Blocker, SAM-ICE, Serial Quad I/O, SMART-I.S., SQI, SuperSwitcher, SuperSwitcher II, Total
Endurance, TSHARC, USBCheck, VariSense, ViewSpan, WiperLock, Wireless DNA, and ZENA are
trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated in the U.S.A.
Silicon Storage Technology is a registered trademark of Microchip Technology Inc. in other countries.
GestIC is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of
Microchip Technology Inc., in other countries.
All other trademarks mentioned herein are property of their respective companies.
© 2017, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved.
ISO/TS 16949
Microchip received ISO/TS-16949:2009 certification for its worldwide headquarters, design and wafer
fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California
® ®
and India. The Company’s quality system processes and procedures are for its PIC MCUs and dsPIC
®
DSCs, KEELOQ code hopping devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design and manufacture of development
systems is ISO 9001:2000 certified.