20.4.2.5.1 DMX Transmit
The following procedure is used for DMX transmit:
- Configure the clock input and baud rate as detailed in Clocking and Baud Rate Configuration for 250 kbaud.
- Configure DMX mode by writing ‘
0b1010
’ to the MODE[3:0] bits. - Set STP to ‘0b10’.
- Configure the TX interrupt watermark using the TXWM[2:0] bits.
- Write to Parameter 1 equal to the number of bytes – 1 (not including start code).
- Set the ON and TXEN bits.
- Write the start code value to UxTXB.
Writing the start code to UxTXB will transmit a 25-bit Break, MAB and start code.
- Write slot data bytes to UxTXB.
If not all bytes defined by Parameter 1 are written, the line will return to the Idle state. Once all bytes are written, the frame is considered complete and the next write to UxTXB will send a Break for the next frame.