20.4.2.5.2 DMX Receive

The following procedure is used for DMX receive:

  1. Configure the clock input and baud rate as detailed in Clocking and Baud Rate Configuration for 250 kbaud.
  2. Configure DMX mode by writing ‘0b1010’ to the MODE[3:0] bits.
  3. Configure the RX interrupt watermark using the RXWM[2:0] bits.
  4. Set the ON bit
  5. Set the RXEN bit.
  6. Wait for the RXBKIF bit to set.
  7. Write the byte start value – 1 to Parameter 2 (not including start code).
  8. Write the byte end value – 1 to Parameter 3 (not including start code).

Once a Break is received, the UART will load the start code byte into UxRXB and generate an RX interrupt, regardless of the RX watermark setting (RXWM[2:0]). The range of bytes defined by Parameter 2 and Parameter 3 are then loaded into UxRXB, and an RX interrupt is generated according to the RXWM[2:0] bits.