Component: DALI Master (Comms: System)
Author | MatrixTSL |
Version | 1.0 |
Category | Comms: System |
Contents
DALI Master component
A serial based communications protocol designed for controlling lighting, specifically digitally controlled dimmable fluorescent ballasts. DALI requires the signals to be level shifted from VCC and GND to +9.5V - +25.5V and GND. The master component can addess up to 64 individual slaves & up to 16 groups.
Detailed description
No detailed description exists yet for this component
Examples
DALI Master Example, reads the value of a keypad and sends out DALI commands based on the key pressed, 1 = switch on a slave's light, 2 = switch off a slave's light, 3 = read the slave's light level.
DALI Master Example1
DALI Slave Example, listens for DALI messages and checks that the group is correct before attempting to process the request and if required reply to the master.
DALI Slave Example1
Downloadable macro reference
![]() |
ReceiveBackwardFrame |
Attempts to receive an 8-bit reply 0 indicates timeout or no reply | |
![]() |
Return |
![]() |
Initialise |
Configures the UART serial interface. | |
![]() |
Return |
![]() |
RawSend |
Sends data to the LCD display | |
![]() |
data |
The data byte to send to the LCD | |
[[File:]] - | type |
A boolean to indicate command type: true to write data, false to write a command | |
![]() |
Return |
![]() |
ReadAnalogAsByte |
Reads one of the analogue components as an byte value | |
![]() |
Channel |
0 = LDR, 1 = POT | |
![]() |
Return |
![]() |
ReadAnalogAsInt |
Reads one of the analogue components as an Integer value | |
![]() |
Channel |
0 = LDR, 1 = POT | |
[[File:]] - | Return |
![]() |
Start |
Startup routine required by the hardware device. Automatically clears the display after initialising. | |
![]() |
Return |
![]() |
SetLEDState |
Sets the state of a single LED | |
![]() |
Port |
0 = PortA, 1 = PortB | |
![]() |
LED |
0 = LED0, 7 = LED7 | |
![]() |
State |
![]() |
Return |
![]() |
Initialise |
Must be called before any other CAN component macros to enable and initialise the CAN peripheral. | |
![]() |
Return |
Property reference
![]() |
Properties |
![]() |
TX Pin |
![]() |
RX Pin |
![]() |
Connections |
![]() |
Simulations |
![]() |
API |