20.4.2.5.2 DMX Receive
The following procedure is used for DMX receive:
- 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. - Configure the RX interrupt watermark using the RXWM[2:0] bits.
- Set the ON bit
- Set the RXEN bit.
- Wait for the RXBKIF bit to set.
- Write the byte start value – 1 to Parameter 2 (not including start code).
- 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.