English
Language : 

SAM7S256_14 Datasheet, PDF (379/775 Pages) ATMEL Corporation – ARM-based Flash MCU
Receiver is enabled, the RTS falls, indicating to the remote device that it can start transmitting. Defining a new buf-
fer to the PDC clears the status bit RXBUFF and, as a result, asserts the pin RTS low.
Figure 31-20. Receiver Behavior when Operating with Hardware Handshaking
RXD
RXEN = 1
Write
US_CR
RXDIS = 1
RTS
RXBUFF
Figure 31-21 shows how the transmitter operates if hardware handshaking is enabled. The CTS pin disables the
transmitter. If a character is being processing, the transmitter is disabled only after the completion of the current
character and transmission of the next character happens as soon as the pin CTS falls.
Figure 31-21. Transmitter Behavior when Operating with Hardware Handshaking
CTS
TXD
31.6.4 ISO7816 Mode
The USART features an ISO7816-compatible operating mode. This mode permits interfacing with smart cards and
Security Access Modules (SAM) communicating through an ISO7816 link. Both T = 0 and T = 1 protocols defined
by the ISO7816 specification are supported.
Setting the USART in ISO7816 mode is performed by writing the USART_MODE field in the Mode Register
(US_MR) to the value 0x4 for protocol T = 0 and to the value 0x5 for protocol T = 1.
31.6.4.1 ISO7816 Mode Overview
The ISO7816 is a half duplex communication on only one bidirectional line. The baud rate is determined by a divi-
sion of the clock provided to the remote device (see “Baud Rate Generator” on page 364).
The USART connects to a smart card as shown in Figure 31-22. The TXD line becomes bidirectional and the Baud
Rate Generator feeds the ISO7816 clock on the SCK pin. As the TXD pin becomes bidirectional, its output remains
driven by the output of the transmitter but only when the transmitter is active while its input is directed to the input
of the receiver. The USART is considered as the master of the communication as it generates the clock.
Figure 31-22. Connection of a Smart Card to the USART
USART
SCK
TXD
CLK
Smart
Card
I/O
When operating in ISO7816, either in T = 0 or T = 1 modes, the character format is fixed. The configuration is 8
data bits, even parity and 1 or 2 stop bits, regardless of the values programmed in the CHRL, MODE9, PAR and
SAM7S Series [DATASHEET]
6175M–ATARM–26-Oct-12
379