0% found this document useful (0 votes)
100 views21 pages

Dali 2-0

Uploaded by

diabloon34
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
100 views21 pages

Dali 2-0

Uploaded by

diabloon34
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

Hardware User Guide of DALI

2.0 Slave on ATtiny817


Hardware User Guide of DALI 2.0 Slave on ATtiny817

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

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 1


Hardware User Guide of DALI 2.0 Slave on ATtiny817

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

The Microchip Web Site................................................................................................ 18

Customer Change Notification Service..........................................................................18

Customer Support......................................................................................................... 18

Microchip Devices Code Protection Feature................................................................. 18

Legal Notice...................................................................................................................19

Trademarks................................................................................................................... 19

Quality Management System Certified by DNV.............................................................20

Worldwide Sales and Service........................................................................................21

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 2


Hardware User Guide of DALI 2.0 Slave on ATtiny817

1. Overview
®
The DALI 2.0 Slave on the ATtiny817 board is intended to demonstrate the ATtiny817 tinyAVR 8-bit
microcontroller.

1.1 System Overview


Figure 1-1. Overview of the DALI 2.0 Slave on the ATtiny817 Board

Figure 1-2. System Block Diagram

1.2 DALI Interface


DALI Interface circuit handles the communication between the MCU and the DALI bus.
Following the DALI protocol, the DALI bus carries a differential signal, the DALI interface circuit transfer
the communication between the MCU and DALI bus.

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 3


Hardware User Guide of DALI 2.0 Slave on ATtiny817
The DALI bus is differential pair, to avoid the risk of sharing common ground, the DALI interface circuit is
isolated with the MCU part via two optocouplers. The repetitive peak isolation voltage of these two
optocouplers reached 890V as described in datasheet.
For decoding, the DALI interface uses constant current source to provide a stable power supply for the
comparator MIC834. As its internal stable reference, the output of comparator depends on the regular
input. The output signal drives the optocoupler to transfer the signal to the MCU. For coding, the MCU
drives the optocoupler directly to get the DALI bus modulated via a MOSFET.
All components on the board are designed with a high reliable consideration, which makes the system
working stable within the temperature range from -40°C to +105°C.
Figure 1-3. DALI Interface

Figure 1-4. Schematic of the DALI Interface

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 4


Hardware User Guide of DALI 2.0 Slave on ATtiny817

1.3 MCU Connection


The ATtiny817 is a microcontroller using the tinyAVR 8-bit microprocessor, with 8 KB Flash, 512 bytes of
SRAM, and 128 bytes of EEPROM.
Figure 1-5. MCU

Figure 1-6. Schematic of the MCU

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 5


Hardware User Guide of DALI 2.0 Slave on ATtiny817

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.

2.1 USB Power Supply


The USB only acts as a 5 VDC power supply for the board, no data communication on the cable. The 5
VDC supply the MCU and the system directly.
Table 2-1. Pin Definition of the USB Socket

Pin Name Connection


1 Vbus 5V power supply
2 D- NC
3 D+ NC
4 ID NC
5 GND GND

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

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 6


Hardware User Guide of DALI 2.0 Slave on ATtiny817
Figure 2-2. Schematic of the USB Socket

2.2 DALI Bus Connector


The DALI Bus connector is dedicated for the DALI bus.
The DALI bus is a pair of cables, which can connect the DALI Master and all DALI Slaves. Since the DALI
bus carries the differential signal, the users need not to take care of the polarity of the connection.
Strip the DALI bus cable in both ends first. Push the socket header on the top, then insert the cable to the
hole, and release the header. The cable will be locked in the socket.
The accomplished figure should look like the figure below.
Figure 2-3. The DALI Bus Connector

2.3 UPDI Header


The UPDI header is dedicated for the user to reprogram the ATtiny817. It is a 1.27 mm pitch 10-pin
header, which can be directly connected to the Atmel-ICE.
®
Note: For Atmel-ICE, use the AVR port to connect it.

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 7


Hardware User Guide of DALI 2.0 Slave on ATtiny817
Table 2-2. Pin Definition of the UPDI Header

Pin Name
1 NC
2 GND
3 UPDI_RESET
4 VCC
5 RESET
6 NC
7 NC
8 NC
9 NC
10 NC

Figure 2-4. UPDI Header

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 8


Hardware User Guide of DALI 2.0 Slave on ATtiny817
Figure 2-5. UPDI with Atmel-ICE

Figure 2-6. Schematic of the UPDI Header

2.4 Status LEDs


There are two LEDs mounted on the board, one green and the other red, combined in one single
component. Both can be used as the status indication.
The green LED is defined as the power supply in the default firmware. The users can use it freely in their
own applications.
Table 2-3. Pin Definition of Status LEDs

Name Color Port on ATtiny817


LED1 Green PA3
LED2 Red PA2

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 9


Hardware User Guide of DALI 2.0 Slave on ATtiny817
Figure 2-7. Status LEDs

Figure 2-8. Schematic of the Status LEDs

2.5 Lighting LED


The Lighting LED is an output of the DALI Slave. It is driven by a PWM signal generated by the
ATtiny817. The brightness of the Lighting LED can be changed upon the duty of the PWM signal. The
drive pin of ATtiny817 is PA5.
The DALI system is widely used in the lighting system. The Lighting LED can be regarded as a lighting
target device. While working together with the DALI Master, the user can easily get a control feedback
from the brightness change of the Lighting LED.

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 10


Hardware User Guide of DALI 2.0 Slave on ATtiny817
Figure 2-9. Lighting LED

Figure 2-10. Schematic of the Lighting LED

2.6 ISP/SPI Header


The ISP/SPI Header is not mounted by default on the board. It is open for the user to mount manually. A
standard 6-pin 2.54 mm pitch header is needed for mounting. The header can be used as a standard
ISP/SPI extension for other modules/boards. The pin definition is shown in the table below.
Table 2-4. Pin Definition of the ISP/SPI Header

Pin Port on ATtiny817 Name


1 PC1 SPI_MISO
2 VCC VCC
3 PC0 SPI_SCK
4 PC2 SPI_MOSI
5 PC5 RST_BUTT
6 GND GND

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 11


Hardware User Guide of DALI 2.0 Slave on ATtiny817
Figure 2-11. The ISP/SPI Header

Figure 2-12. Schematic of the ISP/SPI Header

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

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 12


Hardware User Guide of DALI 2.0 Slave on ATtiny817
Figure 2-14. Schematic of the Button

Note: Resistor R106 (39Ω, 0402, ±1%) should be mounted in series with button SW101 if the user must
use SW101.

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 13


Hardware User Guide of DALI 2.0 Slave on ATtiny817

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.

3.1 Firmware Programming


The hex of default code is available in the attached package for re-programming. Both Flash and Fuse
needs be programmed, as the setting shown in figure below.
Figure 3-1. Program Default Code

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 14


Hardware User Guide of DALI 2.0 Slave on ATtiny817
Figure 3-2. Program Fuse

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 15


Hardware User Guide of DALI 2.0 Slave on ATtiny817

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.

4.1 DALI Master


To build a full DALI system, a DALI Master and DALI bus power supply are needed.
Any DALI Master which follows the DALI 2.0 protocol can handle the work.

4.2 System Control


Under the control of the DALI Master, the DALI Slave should have seen changes via the onboard Lighting
LED according to the control commands from DALI Master. For example, if the broadcast command
'Maximum level' is sent, the Lighting LED should be turned ON and display the maximum brightness.
While the command 'OFF' is sent, the DALI Slave's Lighting LED should be turned OFF immediately.

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 16


Hardware User Guide of DALI 2.0 Slave on ATtiny817

5. Revision History
Doc Rev. Date Comments
A 08/2017 Initial document release.

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 17


Hardware User Guide of DALI 2.0 Slave on ATtiny817
The Microchip Web Site

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

Customer Change Notification Service

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

Users of Microchip products can receive assistance through several channels:


• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
Customers should contact their distributor, representative or Field Application Engineer (FAE) for support.
Local sales offices are also available to help customers. A listing of sales offices and locations is included
in the back of this document.
Technical support is available through the web site at: http://www.microchip.com/support

Microchip Devices Code Protection Feature

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.

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 18


Hardware User Guide of DALI 2.0 Slave on ATtiny817
• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their
code. Code protection does not mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the
code protection features of our products. Attempts to break Microchip’s code protection feature may be a
violation of the Digital Millennium Copyright Act. If such acts allow unauthorized access to your software
or other copyrighted work, you may have a right to sue for relief under that Act.

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.

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 19


Hardware User Guide of DALI 2.0 Slave on ATtiny817
ISBN: 978-1-5224-1766-8

Quality Management System Certified by DNV

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.

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 20


Worldwide Sales and Service
AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE
Corporate Office Asia Pacific Office China - Xiamen Austria - Wels
2355 West Chandler Blvd. Suites 3707-14, 37th Floor Tel: 86-592-2388138 Tel: 43-7242-2244-39
Chandler, AZ 85224-6199 Tower 6, The Gateway Fax: 86-592-2388130 Fax: 43-7242-2244-393
Tel: 480-792-7200 Harbour City, Kowloon China - Zhuhai Denmark - Copenhagen
Fax: 480-792-7277 Hong Kong Tel: 86-756-3210040 Tel: 45-4450-2828
Technical Support: Tel: 852-2943-5100 Fax: 86-756-3210049 Fax: 45-4485-2829
http://www.microchip.com/ Fax: 852-2401-3431 India - Bangalore Finland - Espoo
support Australia - Sydney Tel: 91-80-3090-4444 Tel: 358-9-4520-820
Web Address: Tel: 61-2-9868-6733 Fax: 91-80-3090-4123 France - Paris
www.microchip.com Fax: 61-2-9868-6755 India - New Delhi Tel: 33-1-69-53-63-20
Atlanta China - Beijing Tel: 91-11-4160-8631 Fax: 33-1-69-30-90-79
Duluth, GA Tel: 86-10-8569-7000 Fax: 91-11-4160-8632 France - Saint Cloud
Tel: 678-957-9614 Fax: 86-10-8528-2104 India - Pune Tel: 33-1-30-60-70-00
Fax: 678-957-1455 China - Chengdu Tel: 91-20-3019-1500 Germany - Garching
Austin, TX Tel: 86-28-8665-5511 Japan - Osaka Tel: 49-8931-9700
Tel: 512-257-3370 Fax: 86-28-8665-7889 Tel: 81-6-6152-7160 Germany - Haan
Boston China - Chongqing Fax: 81-6-6152-9310 Tel: 49-2129-3766400
Westborough, MA Tel: 86-23-8980-9588 Japan - Tokyo Germany - Heilbronn
Tel: 774-760-0087 Fax: 86-23-8980-9500 Tel: 81-3-6880- 3770 Tel: 49-7131-67-3636
Fax: 774-760-0088 China - Dongguan Fax: 81-3-6880-3771 Germany - Karlsruhe
Chicago Tel: 86-769-8702-9880 Korea - Daegu Tel: 49-721-625370
Itasca, IL China - Guangzhou Tel: 82-53-744-4301 Germany - Munich
Tel: 630-285-0071 Tel: 86-20-8755-8029 Fax: 82-53-744-4302 Tel: 49-89-627-144-0
Fax: 630-285-0075 China - Hangzhou Korea - Seoul Fax: 49-89-627-144-44
Dallas Tel: 86-571-8792-8115 Tel: 82-2-554-7200 Germany - Rosenheim
Addison, TX Fax: 86-571-8792-8116 Fax: 82-2-558-5932 or Tel: 49-8031-354-560
Tel: 972-818-7423 China - Hong Kong SAR 82-2-558-5934 Israel - Ra’anana
Fax: 972-818-2924 Tel: 852-2943-5100 Malaysia - Kuala Lumpur Tel: 972-9-744-7705
Detroit Fax: 852-2401-3431 Tel: 60-3-6201-9857 Italy - Milan
Novi, MI China - Nanjing Fax: 60-3-6201-9859 Tel: 39-0331-742611
Tel: 248-848-4000 Tel: 86-25-8473-2460 Malaysia - Penang Fax: 39-0331-466781
Houston, TX Fax: 86-25-8473-2470 Tel: 60-4-227-8870 Italy - Padova
Tel: 281-894-5983 China - Qingdao Fax: 60-4-227-4068 Tel: 39-049-7625286
Indianapolis Tel: 86-532-8502-7355 Philippines - Manila Netherlands - Drunen
Noblesville, IN Fax: 86-532-8502-7205 Tel: 63-2-634-9065 Tel: 31-416-690399
Tel: 317-773-8323 China - Shanghai Fax: 63-2-634-9069 Fax: 31-416-690340
Fax: 317-773-5453 Tel: 86-21-3326-8000 Singapore Norway - Trondheim
Tel: 317-536-2380 Fax: 86-21-3326-8021 Tel: 65-6334-8870 Tel: 47-7289-7561
Los Angeles China - Shenyang Fax: 65-6334-8850 Poland - Warsaw
Mission Viejo, CA Tel: 86-24-2334-2829 Taiwan - Hsin Chu Tel: 48-22-3325737
Tel: 949-462-9523 Fax: 86-24-2334-2393 Tel: 886-3-5778-366 Romania - Bucharest
Fax: 949-462-9608 China - Shenzhen Fax: 886-3-5770-955 Tel: 40-21-407-87-50
Tel: 951-273-7800 Tel: 86-755-8864-2200 Taiwan - Kaohsiung Spain - Madrid
Raleigh, NC Fax: 86-755-8203-1760 Tel: 886-7-213-7830 Tel: 34-91-708-08-90
Tel: 919-844-7510 China - Wuhan Taiwan - Taipei Fax: 34-91-708-08-91
New York, NY Tel: 86-27-5980-5300 Tel: 886-2-2508-8600 Sweden - Gothenberg
Tel: 631-435-6000 Fax: 86-27-5980-5118 Fax: 886-2-2508-0102 Tel: 46-31-704-60-40
San Jose, CA China - Xian Thailand - Bangkok Sweden - Stockholm
Tel: 408-735-9110 Tel: 86-29-8833-7252 Tel: 66-2-694-1351 Tel: 46-8-5090-4654
Tel: 408-436-4270 Fax: 86-29-8833-7256 Fax: 66-2-694-1350 UK - Wokingham
Canada - Toronto Tel: 44-118-921-5800
Tel: 905-695-1980 Fax: 44-118-921-5820
Fax: 905-695-2078

© 2017 Microchip Technology Inc. User Guide DS50002631A-page 21

You might also like