APPLICATION NOTE
R01AN3193EJ0100 Rev.1.00 Page
1
of 64
August 31, 2016
RL78/I1A
Lighting Communications Using RL78/I1A (Transmission)
Introduction
The application note explains the control program to be implemented in RL78/I1A Lighting Communication Master
Evaluation Board. Refer to the "RL78/I1A Lighting Communication Master Evaluation Board Users manual" for the
handling of the evaluation board.
Target Devices
MCU: RL78/I1A [38-pin]
Evaluation board: RL78/I1A Lighting Communication Master Evaluation Board
When applying this application note to other microcontrollers, make the necessary changes according to the
specifications of the microcontroller and verify them thoroughly.
Contents
R01AN3193EJ0100
Rev.1.00
August 31, 2016
RL78/I1A Lighting Communications Using RL78/I1A (Transmission)
R01AN3193EJ0100 Rev.1.00 Page
2
of 64
August 31, 2016
1. DALI Communication........................................................................................................ 5
1.1 DALI standard configuration .......................................................................................................... 5
1.1.1 Configuration overview ........................................................................................................... 5
1.1.2 Extended feature overview ..................................................................................................... 6
1.2 DALI system configuration ............................................................................................................ 6
1.2.1 System configuration .............................................................................................................. 6
1.2.2 Single Master .......................................................................................................................... 7
1.2.3 Multi Master ............................................................................................................................. 8
1.3 Flow of DALI system information .................................................................................................. 9
1.4 Multi-master support ................................................................................................................... 10
1.4.1 Necessity of collision detection ............................................................................................. 10
1.4.2 The collision detection standard ........................................................................................... 10
1.4.3 Return after collision detection .............................................................................................. 11
1.5 How to realize the collision detection in the RL78/I1A ................................................................ 12
1.5.1 Bus monitoring by TAU ......................................................................................................... 12
1.5.2 Control of a collision return timer by TAU ............................................................................. 12
2. DMX512 communication ................................................................................................ 13
3. Infrared transmission ...................................................................................................... 13
4. USB communication ....................................................................................................... 13
5. Software Configuration ................................................................................................... 14
5.1 Overview ..................................................................................................................................... 14
5.2 Settings of peripheral features .................................................................................................... 15
5.3 File structure................................................................................................................................ 18
5.4 List of Functions .......................................................................................................................... 19
5.5 Function specifications ................................................................................................................ 20
5.5.1 Main process ......................................................................................................................... 20
5.5.2 Key operation process .......................................................................................................... 22
5.5.3 Initialization process for the user .......................................................................................... 26
5.5.4 Timer control initialization process ........................................................................................ 27
5.5.5 1 ms period process .............................................................................................................. 28
5.5.6 562.5μs period process ......................................................................................................... 29
5.5.7 Key input read initialization process ..................................................................................... 30
5.5.8 Key input 1 ms period process .............................................................................................. 31
5.5.9 LED display initialization process.......................................................................................... 33
5.5.10 LED display 1 ms period process ......................................................................................... 34
5.5.11 DALI communication initialization process ........................................................................... 36
5.5.12 DALI communication control ................................................................................................. 37
5.5.13 DALI/DMX512 communication transmission completion interrupt process .......................... 42
5.5.14 DALI communication reception completion interrupt process .............................................. 43
5.5.15 DALI communication collision detection pulse measurement timer process ........................ 44
5.5.16 DALI communication collision detection elapsed time determination timer process ............ 47
5.5.17 DMX512 communication initialization process ..................................................................... 49
5.5.18 DMX512 communication control process ............................................................................. 50
5.5.19 DMX512 communication 1 ms period process ..................................................................... 51