Cerberus simple DMX Transmitter
The code is based on Tecchie’s one from netduino forums (Simple DMX Transmitter - Project Showcase - Netduino Forums), with a slight modification, as we don’t need anymore the logic and gate. DMX is rs485 based so an rs485 transceiver on any UART should work. The only problem is the serial “break” which we can’t generate in netmf. Tecchie’s solution is to use another pin and an and gate to generate it.
Here we use cerb-registers to switch baudrate on the fly, send a null byte and switch to original baudrate back.
For the design, follow the frizting diagram from Tecchies, just forget about the and gate, we don’t need it, so connect the tx pin directly to the D pin of the transceiver.