Mikroe DMX Click Скачать руководство пользователя страница 3

[3] 

 

UART interface 

The Click board™ uses the standard UART interface to exchange data with the host controller. Default UART parameters 
are 115200, (8) data bits, (N)o parity, (1) stop bit. However, the Click board™ features an automatic baud rate configuration 
and can use a wide range of different baud rates. More about selecting a custom baud rate can be found in the respective 
chapter.  

Other considerations 

The digital signal might deteriorate with a large number of SLAVE devices connected. However, DMX Click offers a lot 
of  freedom  and  flexibility.  The  support  for  multiple  DMX  universes  can  be  implemented  within  the  lighting  control 
application itself, while the actual number of connected SLAVE devices can be increased by using two or more DMX Clicks 
and using them to build so-called DMX Splitters and DMX Repeaters. These devices can also be purchased separately, in 
specialized stage lighting stores. 

A DMX network employs a daisy-chain connection topology. The last SLAVE device in the signal chain should always 
have its termination resistor enabled in order to allow a proper impedance matching. DMX Click offers a small dip-switch 
labeled as "TERMINATION" which enables the 120Ω termination resistor, when set to position "1". 

Configuring the Click board™ 

How to reset the Click board™  

It is always a good idea to reset the Click board™ before it is used. To perform reset, the RST pin of the mikroBUS™ 
should be pulsed LOW. After the Click board™ boots up, it is possible to select the new UART baud rate and operating 
mode. The end of the boot sequence is signalized by a short pulse on the INT pin and a response message over the TX pin, 
reporting the operating mode status (MASTER/SLAVE). 

Automatic baud rate (ABR) configuration 

If during the boot sequence the ABR pin is set to a HIGH logic level, the Click board™ will use the default UART settings, 
as described above (115200, 8, N, 1). However, if during the boot sequence the ABR pin is set to a LOW logic level, the 
STAT LED will start blinking while the INT pin will be held to a HIGH logic level. The Click board™ expects the value 
of 0x55 (character "U") to be received over the UART interface (RX pin) at the desired baud rate. Once the character has 
been received, the Click board™ will lock the detected baud rate and the INT pin returns to its idle state (LOW). The baud 
rate remains locked until the next power or reset cycle. 

Note: The Click board™ will attempt to detect the baud rate of any value sent via the RX pin. Sending values other than 
0x55 will cause the baud rate to be detected incorrectly. 

MASTER/SLAVE selection 

After reset, the Click board™ will check the logic state of the RUN pin (PWM pin of the mikroBUS™). The logic state on 
this pin  determines whether the Click board™  boots up in MASTER or in SLAVE operating  mode. Once set, the  main 
operating mode can't be changed until the next reset cycle. After the Click board™ completes the boot sequence, the RUN 
pin becomes free to be used for RUN/CFG sub-mode selection. The end of the boot sequence is signalized by the INT pin 
and a UART response message over the TX pin. 

Содержание DMX Click

Страница 1: ...ng Modes 2 UART interface 3 Other considerations 3 Configuring the Click board 3 MASTER SLAVE selection 3 MASTER RUN mode 4 SLAVE RUN mode 4 MASTER SLAVE CFG mode 5 DMX Start Code 5 Configuration comm...

Страница 2: ...e Click board also provides galvanic isolation between the DMX bus and the host application with no additional components required Operating Modes The Click board can be operated both as DMX MASTER an...

Страница 3: ...ick board boots up it is possible to select the new UART baud rate and operating mode The end of the boot sequence is signalized by a short pulse on the INT pin and a response message over the TX pin...

Страница 4: ...been received to fill the input buffer it will be swapped with the output buffer and an interrupt will signal that the input buffer is ready to receive a new data stream However the input buffer will...

Страница 5: ...r or lf control characters should be used when sending a command The parser will treat them as regular values causing a misalignment of the input buffer Any buffer misalignment can be resolved with a...

Страница 6: ...valid range is from od 001 to 512 Default 008 This is the length of the input buffer which will be mapped onto the output DMX frame NOTE The input buffer mapping boundaries defined by the SADR and BLE...

Страница 7: ...iguration has been stored it will be always retrieved from the EEPROM The only way to revert to default values is to clear the stored configuration record This command will delete the stored configura...

Страница 8: ...e received DMX frame length no error condition will be signaled In this case the SLAVE device will keep waiting for the particular channels that are out of range ITMR XXX XXX is the duration of the in...

Страница 9: ...9 Appendix DMX Click ABR setup and mode selection flow chart...

Отзывы: