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

[4] 

 

-

 

If the RUN pin is at a LOW logic level after the reset, the Click board™ will run as a DMX SLAVE. The MODE 
LED indicator will be turned OFF. The response message is: "SLAVE RDY" (terminated by the <cr><lf> sequence)  

-

 

If the RUN pin is at a HIGH logic level after the reset, the Click board™ will run as a DMX MASTER. The MODE 
LED  indicator  will  be  turned  ON.  The  response  message  is:  "MASTER  RDY"  (terminated  by  the  <cr><lf> 
sequence) 

Note: After the reset cycle, the Click board™ will first check the state of the ABR pin and then the state of the RUN pin. 
The best practice is to first set the ABR and RUN pins to required states and then perform reset. By monitoring the INT 
pin, it is possible to determine the status of the device during boot.

 

(MASTER) RUN mode 

A rising edge on the RUN pin will cause the Click board™ to enter the RUN mode. The RUN pin is pulled up by an internal 
resistor. 

While operating in MASTER/RUN mode, the Click board™ relays data from the RX pin to the DMX bus, by generating 
DMX frames. The UART input buffer length is of a (configurable) fixed size.  

NOTE: No <cr> or <lf> control characters should be used to terminate the input. The parser will treat them as regular 
values, causing a misalignment of the input buffer. Any buffer misalignment can be resolved with a short LOW pulse on 
the RUN pin (while in RUN sub-mode).

 

The logic state of the RUN LED indicator will be inverted after each DMX frame, causing the LED to blink during normal 
operation. 

Once enough bytes have 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 not be swapped with the 
output buffer until it is completely filled, so the output buffer will continuously cycle the most recently received data. This 
may sound wrong for a typical data transfer situation, but in stage lighting situations, this is actually the perfect solution 
that helps to avoid unwanted blackouts when there is no data at the input. 

NOTE:  The  interrupt  signal  is  synchronized  with  the  DMX  Frame  Break  event.  Even  if  the  input  buffer  is  full,  the 
interrupt won't be triggered before the next Frame Break event. This helps to avoid filling the input buffer multiple times 
in cases where it can be filled much faster than the output frame can be transmitted (e.g., a small input buffer at 115200 
bps will be completely filled long before the entire DMX universe can be transmitted to the DMX bus at 250000 bps) 

(SLAVE) RUN mode 

A rising edge on the RUN pin will cause the Click board™ to enter RUN mode. The RUN pin is pulled up by an internal 
resistor. 

While operating in SLAVE/RUN mode, the Click board™ continuously receives DMX frames and  decodes them into a 
UART data string. The data string is available at the TX pin of the Click board™. Each DMX Frame Break event that marks 
the  beginning  of  a  new  DMX  frame  is  signalized  by  an  interrupt,  which  can  be  used  for  synchronization  with  the  host 
application.  

The logic state of the RUN LED indicator will be inverted after each successfully received DMX frame, causing the LED 
to blink during normal operation. 

Содержание 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...

Отзывы: