Quote Originally Posted by mister_e View Post
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.
Agreed on all counts. HSERIN won't work very well for what you're trying to do.

Many ways to skin this particular cat, and PBP's access to the processor's registers makes this easy.