Figure 251. Parity Error Detection Using The 1.5 Stop Bits - ST STM32F102 Series Reference Manual

Hide thumbs Also See for STM32F102 Series:
Table of Contents

Advertisement

RM0008
NACK signal (pulling transmit line low for 1 baud clock) will cause a framing error on the
transmitter side (configured with 1.5 stop bits). The application can handle re-sending
of data according to the protocol. A parity error is 'NACK'ed by the receiver if the NACK
control bit is set, otherwise a NACK is not transmitted.
The assertion of the TC flag can be delayed by programming the Guard Time register.
In normal operation, TC is asserted when the transmit shift register is empty and no
further transmit requests are outstanding. In Smartcard mode an empty transmit shift
register triggers the guard time counter to count up to the programmed value in the
Guard Time register. TC is forced low during this time. When the guard time counter
reaches the programmed value TC is asserted high.
The de-assertion of TC flag is unaffected by Smartcard mode.
If a framing error is detected on the transmitter end (due to a NACK from the receiver),
the NACK will not be detected as a start bit by the receive block of the transmitter.
According to the ISO protocol, the duration of the received NACK can be 1 or 2 baud
clock periods.
On the receiver side, if a parity error is detected and a NACK is transmitted the receiver
will not detect the NACK as a start bit.
Note:
1
A break character is not significant in Smartcard mode. A 0x00 data with a framing error will
be treated as data and not as a break.
2
No IDLE frame is transmitted when toggling the TE bit. The IDLE frame (as defined for the
other configurations) is not defined by the ISO protocol.
Figure 251
USART is transmitting a data and is configured with 1.5 stop bits. The receiver part of the
USART is enabled in order to check the integrity of the data and the NACK signal.

Figure 251. Parity error detection using the 1.5 stop bits

The USART can provide a clock to the smartcard through the SCLK output. In smartcard
mode, SCLK is not associated to the communication but is simply derived from the internal
peripheral input clock through a 5-bit prescaler. The division ratio is configured in the
prescaler register USART_GTPR. SCLK frequency can be programmed from f
f
/62, where f
CK
Universal synchronous asynchronous receiver transmitter (USART)
details how the NACK signal is sampled by the USART. In this example the
Bit 7
Parity Bit
1 bit time
sampling at
8th, 9th, 10th
sampling at
8th, 9th, 10th
is the peripheral input clock.
CK
1.5 Stop Bit
1.5 bit time
sampling at
16th, 17th, 18th
0.5 bit time
1 bit time
sampling at
8th, 9th, 10th
/2 to
CK
631/690

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F102 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Stm32f101 seriesStm32f103 series

Table of Contents