TX Output Signal From USART Show Two Stop Bits

Each character transmission consists of one start bit followed by eight or nine data bits and is always terminated by one or two stop bits.

The two stop bits might appear due to:

  1. The ninth bit of Transmit Data (TX9D) can be a data bit or a parity bit. In case this bit is set as '1', the output might contain two stop bits after the 8-bit transmission.
  2. The delay between transmissions might also influence the output and create a false impression of a second stop bit. For example, establishing the end of transmission by checking the Transmit Shift Register Status (TRMT) bit of the Eusart Transmit Status and Control (TXSTA) register creates one TCY delay as the pending character in the TXREG is first transferred to the TSR and then the stop bit is transmitted. This delay can be avoided by checking the USART Transmit Interrupt (TXIF) bit flag instead of the TRMT bit. The TXIF flag is set when the EUSART transmitter is enabled and no character is being held for transmission in the TXREG.
© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.