![Infineon Technologies TC1784 Скачать руководство пользователя страница 1088](http://html.mh-extra.com/html/infineon-technologies/tc1784/tc1784_user-manual_20554461088.webp)
TC1784
Asynchronous/Synchronous Serial Interface (ASC)
User´s Manual
16-10
V1.1, 2011-05
ASC, V1.6
16.1.4.1 Synchronous Transmission
Synchronous transmission begins within four state times after data has been loaded into
TBUF, provided that CON.R is set and CON.REN = 0 (half-duplex, no reception), with
one exception: in asynchronous Loop-back Mode (bit CON.LB set), CON.REN must be
set for reception of the transmitted byte. In synchronous Loop-back Mode, the
transmitted byte can still be received if CON.REN=0. Data transmission is double-
buffered. When the transmitter is idle, the transmit data loaded into TBUF is immediately
moved to the transmit shift register, thus freeing TBUF for the next data to be sent. This
is indicated by the transmit buffer interrupt request line TBIR being activated. TBUF may
now be loaded with the next data, while transmission of the previous one continues. The
data bits are transmitted synchronously with the shift clock. After the bit time for the 8
th
data bit, both TXD and RXD will be set to high level, the transmit interrupt request line
TIR is activated, and serial data transmission stops.
Note: The dedicated GPIO device pins that are connected to TXD and RXD must be
configured by software as alternate data outputs in order to provide the shift clock
and the output data during synchronous transmission.
16.1.4.2 Synchronous Reception
Synchronous reception is initiated by setting bit CON.REN = 1. If bit CON.R = 1, the data
applied at RXD is clocked into the receive shift register synchronously to the clock which
is output at TXD. After the 8
th
bit has been shifted in, the contents of the receive shift
register are transferred to the receive data buffer RBUF, the receive interrupt request line
RIR is activated, the receiver enable bit CON.REN is reset, and serial data reception
stops.
Synchronous reception is stopped by clearing bit CON.REN. Any byte that is currently
being received is completed, including the generation of the receive interrupt request
and an error interrupt request, if appropriate. Writing to the transmit buffer register while
a reception is in progress has no effect on reception and will not start a transmission.
If a previously received byte has not been read out of the receive buffer register by the
time the reception of the next byte is complete, both the error interrupt request line EIR
and the overrun error status flag CON.OE will be activated/set, provided that the overrun
check has been enabled by bit CON.OEN.
Note: The dedicated GPIO device pin that is connected to TXD must be configured by
software as alternate data output in order to provide the shift clock. The dedicated
GPIO device pin that is connected to RXD must be configured by software as input
during synchronous reception.
Содержание TC1784
Страница 1: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Страница 3: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Страница 950: ...TC1784 Direct Memory Access Controller DMA User s Manual 11 132 V1 1 2011 05 DMA V3 03 ...
Страница 1949: ...TC1784 General Purpose Timer Array GPTA v5 User s Manual 21 297 V1 1 2011 05 GPTA v5 V1 14 ...
Страница 2350: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG Doc_Number ...