On Thu, Aug 21, 2008 at 7:15 PM, Harold Hallikainen wrote: > I ended doing the break in hardware. When > I was doing DMX, the UARTs in PICs could not do a break. Those that can do > it will not do a long enough break to meet the DMX spec. It's more > designed for LIN. If you set the bitrate to 100kbps and send the byte 0x00 you'll get a 90uS 'break' on the line (the spec calls for 88uS, but longer is ok with the earlier spec). Alternately you can just set the port output appropriately (switch from the uart for 90uS, then switch back with the output and data register preset - need only change the peripheral usage). Detecting a break is simply detecting two framing errors in a row. Of course, there are other unusual factors that may require a different solution, but these are the common PIC DMX generation and detection methods. -Adam -- EARTH DAY 2008 Tuesday April 22 Save Money * Save Oil * Save Lives * Save the Planet http://www.driveslowly.org -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist