
Originally Posted by
mister_e
If you use DEFINE, you need to use HSERIN/HSEROUT unless, there's no big chance that your USART will be configured properly. However, with DMX, you want to stay away of HSERIN... so you'll need to manually configure the USART registerS manually. RCSTA, SPBRG, TXSTA.
Next thing... there's several method to detect the DMX break and the start code.. pulsin MAY work.. but usually detecting a framing error is more valuable. There's a few Appnote on Microchip website about that. The one I remember of is AN1076.
Bookmarks