WWW.MOTOROLA.COM/SEMICONDUCTORS
M68HC08
Microcontrollers
DRM004/D
Rev. 3.0, 3/2002
Digitally Addressable
Designer Reference
Manual
Lighting Interface
(DALI) Unit
Using the
MC68HC908KX8
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Digitally Addressable Lighting Interface (DALI) Unit DRM004 — Rev. 3.0
MOTOROLA 3
Digitally Addressable Lighting
Interface (DALI) Unit
Using the MC68HC908KX8
By: Magnus Grampp
Grampp R & D HB
Skimmelvagen 14
SE-252 86 Helsingborg
Sweden
Telephone: +46 42 913 95
Fax: +46 70 614 96 39
Email: info@grampp.se
Web: http://www.grampp.se
Motorola and the Stylized M Logo are registered trademarks of Motorola, Inc.
DigitalDNA is a trademark of Motorola, Inc. © Motorola, Inc., 2002
Grampp R & D
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
DRM004 — Rev. 3.0 Digitally Addressable Lighting Interface (DALI) Unit
4 MOTOROLA
Revision History
To provide the most up-to-date information, the revision of our
documents on the World Wide Web will be the most current. Your printed
copy may be an earlier revision. To verify you have the latest information
available, refer to:
http://www.motorola.com/semiconductors
The following revision history table summarizes changes contained in
this document. For your convenience, the page number designators
have been linked to the appropriate location.
Revision History
Date
Revision
Level
Description
Page
Number(s)
November,
2001
1
5.5.3 DALI Module — Description reworded for clarity 57
Figure 3-11. cpu-Init( ) Flowchart — Clock frequency changed
from 9.8304 MHz to19.6608 MHz
40
F.4 Master: cpu.c — Code replaced 89
F.6 Master: dali.c — Code replaced 93
F.15 Master: rs232.c — Code replaced 113
G.5 Slave: cpu.c — Code replaced 122
G.7 Slave: dali.c — Code replaced 125
G.11 Slave: lamp.c — Code replaced 135
G.14 Slave: rs232.c — Code replaced 159
November,
2001
2
Appendix B. DALI Master Unit Schematic and Layout — Replaced
master schematic and master layout for readability.
71
Appendix D. DALI Slave Unit Schematic and Layout — Replaced
slave schematic and slave layout for readability.
79
March,
2002
3 G.11 Slave: lamp.c — Code changed to buffered PWM 135
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
Digitally Addressable Lighting Interface (DALI) Unit DRM004 — Rev. 3.0
MOTOROLA List of Sections 7
Designer Reference Manual — DALI Unit
List of Sections
Section 1. General Description . . . . . . . . . . . . . . . . . . . .19
Section 2. DALI Demonstration Board . . . . . . . . . . . . . .23
Section 3. DALI Master Unit . . . . . . . . . . . . . . . . . . . . . . .27
Section 4. DALI Protocol Standard . . . . . . . . . . . . . . . . .45
Section 5. DALI Slave Unit . . . . . . . . . . . . . . . . . . . . . . . .49
Section 6. PC Software. . . . . . . . . . . . . . . . . . . . . . . . . . .63
Appendix A. DALI Instruction Set . . . . . . . . . . . . . . . . . .67
Appendix B. DALI Master Unit Schematic
and Layout. . . . . . . . . . . . . . . . . . . . . . . . . .71
Appendix C. DALI Master Unit Bill of Materials . . . . . . .75
Appendix D. DALI Slave Unit Schematic
and Layout. . . . . . . . . . . . . . . . . . . . . . . . . .79
Appendix E. DALI Slave Bill of Materials . . . . . . . . . . . .83
Appendix F. DALI Master Unit Source
Code Files . . . . . . . . . . . . . . . . . . . . . . . . . .85
Appendix G. DALI Slave Source Code Files. . . . . . . . .117
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...