At 02:20 PM 05/09/2002 -0400, you wrote: > > In hardware, yes. But since the difference between one and two stop bits > > is simply one bit time of idle signal, you could simply wait for the TXIF > > flag, delay one bit time, and load the next character. Olin: >That won't work. The TXIF flag indicates when TXREG is transferred to the >output shift register, not when the last bit got done. For that you need to >monitor the TRMT bit in TXSTA, although there is no interrupt connected to >it. I do exactly this by checking TRMT in my 10ms interrupt routine. I only check it however after loading the last byte by setting another flag that the ISR checks. Regards... ___________________________________________ David Duffy Audio Visual Devices P/L U8, 9-11 Trade St, Cleveland 4163 Australia Ph: +61 7 38210362 Fax: +61 7 38210281 New Web: www.audiovisualdevices.com.au ___________________________________________ -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.