I'm looking to design an 8 channel DMX 512 dimmer. I have designed an AC dimmer using PWM and zero cross detector before, and this interfaced to a computer serial port at 9600bps.
However, I'm not sure how I should go about receiving a DMX signal. The first problem is the speed it operates at, but I'm sure it's possible to achieve the required speeds using PBP and a fast enough clock speed.
Secondly, the USART probably wont take a liking to the DMX break and certain other parts of the DMX signal.
If anyone has some fairly complete working code to receive DMX through the USART (I'll be using 16F627) then it would be much appreciated.
If the clock is fast enough, I should be able to keep checking the USART on each cycle of the code, and stop it from overrunning, while still having time to sample for zero crossing and do the dimming.
Once again many thanks!
Matthew
Bookmarks