APPLICATION NOTE
R01AN1115EJ0300Rev.3.00 Page 1of 92
March 31, 2016
RL78/I1A
Lighting Communications Using RL78/I1A (Reception)
Purpose
The purpose of this application note is to describe how to implement different communication interfaces for lighting control
within lighting systems such as DALI, DMX512 and IR remote control using the RL78/I1A features.
Readers
This document is intended for lighting system engineers who design and develop lighting systems with communication
capabilities.
The target products are as follows:
20-pin: R5F1076C
30-pin: R5F107AE, R5F107AC
38-pin: R5F107DE
R01AN1115EJ0300
Rev.3.00
Mar. 31, 2016
RL78/I1A
Lighting Communications Using RL78/I1A(Reception)
R01AN1115EJ0300Rev.3.00 Page 2 of 92
March 31, 2016
Contents
1. Introduction ................................................................................................................ 6
2. Applilet EZ for HCDController .................................................................................... 7
2.1 Overview ......................................................................................................................... 7
2.2 Supported protocols ........................................................................................................ 8
2.3 Supported board .............................................................................................................. 8
3. DALI Communication ................................................................................................. 9
3.1 Overview of DALI ............................................................................................................ 9
3.1.1 What is DALI? ..................................................................................................................... 9
3.1.2 DALI standard configuration ............................................................................................... 9
3.1.2.1 Configuration Overview ........................................................................................ 9
3.1.2.2 Extension Overview ........................................................................................... 10
3.1.3 DALI system configuration ................................................................................................ 10
3.1.3.1 System configuration ......................................................................................... 10
3.1.3.2 Control Gear ....................................................................................................... 11
3.1.4 Features of DALI communication ..................................................................................... 12
3.1.5 Overview of DALI communication .................................................................................... 12
3.1.5.1 Data structure and frame structure .................................................................... 12
3.1.5.2 Settling time ....................................................................................................... 14
3.1.5.3 Timing of transmission and reception ................................................................ 15
3.1.5.4 Commands ......................................................................................................... 15
3.2 Realizing DALI Communication with RL78/I1A ............................................................. 17
3.2.1 RL78/I1A features used for DALI communication: DALI/UART4 interface ...................... 17
3.2.1.1 Communication circuit ........................................................................................ 17
3.2.1.2 Data communication timing chart ....................................................................... 18
3.2.2 Saving DALI communication parameters ......................................................................... 20
3.2.3 Overview of operations ..................................................................................................... 21
3.3 Organization of DALI Communication Lighting Control Software .................................. 23
3.3.1 Operation and software flowchart ..................................................................................... 24
3.4 DALI Commands ........................................................................................................... 36
3.5 Functions for Applilet EZ for HCD DALI Communication (RL78/I1A DC/DC LED
Control Evaluation Board) ..................................................................................................... 47
3.5.1 r_dali.c .............................................................................................................................. 49
3.5.1.1 DALI_init ............................................................................................................. 49
3.5.1.2 DALI_getValue ................................................................................................... 49
3.5.1.3 DALI_ActualLevelChangeCheck ........................................................................ 49
3.5.1.4 DALI_RevceiveCommand .................................................................................. 49