On Wed, 27 Oct 1999 15:13:30 -0200 Edson Brusque writes: > Harold, > > > Do you send and receive a DMX packet while doing other things? Using the >USART interrupts? The PIC16C87X have an USART that I think is capable of >this, but as I'm new to controllers, I haven't the time to try it yet. > > What do you mean with 'bit banging'? > Yes, I'm transmitting, receiving, and doing other stuff simultaneously. I have a receive buffer in RAM that is continuously being overwritten by incoming DMX. I have a transmit buffer that is continuously being sent out on DMX (by the way, while I use the USART receive interrupt, I don't use the transmit interrupt because of difficulty syncing the break with transmitted characters. Instead, I use a timer interrupt for transmit of bytes and transmit of break). Other stuff (A/D reading pots, printer port communications, etc.) is all done by non-interrupt code. Bit banging is transmitting (and receiving) serial data without the aid of a USART. You spend a lot of time doing bit timing and hoping you sample the line at the right time. USARTs are nice! Harold Harold Hallikainen harold@hallikainen.com Hallikainen & Friends, Inc. See the FCC Rules at http://hallikainen.com/FccRules and comments filed in LPFM proceeding at http://hallikainen.com/lpfm ___________________________________________________________________ Get the Internet just the way you want it. Free software, free e-mail, and free Internet access for a month! Try Juno Web: http://dl.www.juno.com/dynoget/tagj.