Datasheet

78K0/Ix2 CHAPTER 14 SERIAL INTERFACE UART6/DALI
R01UH0010EJ0500 Rev.5.00 464
Feb 28, 2012
Figure 14-31. Example of DALI Communication (Slave Transmission/Reception) Flow Chart
UADLCTL = 01H
POWER6 = 1
Setting port
CKSR6 = 0XH
BRGC6 = XXH
START
Yes
Yes
No
No
INTSR6
(reception end interrupt)
occurs?
Yes
No
Communication processing Initial setting
RXE6 = 1
Reading RXBDL
Communication
error processing
INTSRE6
(reception error interrupt)
occurs?
Yes
Command
requiring response?
Command received
twice?
INTSR6
(reception end interrupt)
occurs?
INTSRE6
(reception error iinterrupt)
occurs?
Time-out?
Yes
Yes Yes
No
No
No No
Command
received once without
response?
Normal communication
processing
Yes
NoNoNo
Undefined-command processing
1
Yes
1
1
1
1
Time-out processing
Yes
1
Response is "No"?
INTST6
(transmission end interrupt)
occurs?
TXE6 = 0
TXB6 = XXH
TXE6 = 1
Yes
No
1
( )
Saving RXBDL receive data
higher 8 bits of RXBDL : adress
lower 8 bits of RXBDL : data
END
Communication end?
RXE6 = 0
Normal communication
processing
Normal communication
processing
Communication
error processing