DS_1209F_004
73S1209F Data Sheet
Rev. 1.2
85
TX Control/Status Register (STXCtl): 0xFE06
Å
0x00
This register is used to control transmission of data to the smart card. Some control and some status bits
are in this register.
Table 79: The STXCtl Register
MSB
LSB
SYCKST – TXFULL
TXEMTY TXUNDR LASTTX
TX/RXB
BREAKD
Bit Symbol
Function
STXCtl.7 I2CMODE
I2C Mode – When in sync mode and this bit is set, and when the RLen count
value = max or 0, the source of the smart card data for IO pin (or SIO pin) will
be connected to the IO bit in
FIFO. See the description for the
for more detail.
STXCtl.6 –
STXCtl.5 TXFULL
TX FIFO is full. Additional writes may corrupt the contents of the FIFO. This
bit it will remain set as long as the TX FIFO is full. Generates TX_Event
interrupt upon going full.
STXCtl.4 TXEMTY
1 = TX FIFO is empty, 0 = TX FIFO is not empty. If there is data in the TX
FIFO, the circuit will transmit it to the smart card if in transmit mode. In T=1
mode, if the LASTTX bit is set and the hardware is configured to transmit the
CRC/LRC, the TXEMTY will not be set until the CRC/LRC is transmitted. In
T=0, if the LASTTX bit is set, TXEMTY will be set after the last word has
been successfully transmitted to the smart card. Generates TXEVNT
interrupt upon going empty.
STXCtl.3 TXUNDR
TX Underrrun – (Read only) Asserted when a transmit under-run condition
has occurred. An under-run condition is defined as an empty TX FIFO when
the last data word has been successfully transmitted to the smart card and
the LASTTX bit was not set. No special processing is performed by the
hardware if this condition occurs. Cleared when read by firmware. This bit
generates TXERR interrupt.
STXCtl.2 LASTTX
Last TX Byte – Set by firmware (in both T=0 and T=1) when the last byte in
the current message has been written into the transmit FIFO. In T=1 mode,
the CRC/LRC will be appended to the message. Should be set after the last
byte has been written into the transmit FIFO. Should be cleared by firmware
before writing first byte of next message into the transmit FIFO. Used in T=0
to determine when to set TXEMTY.
STXCtl.1 TX/RXB
1 = Transmit mode, 0 = Receive mode. Configures the hardware to be
receiving from or transmitting to the smart card. Determines which counters
should be enabled. This bit should be set to receive mode prior to switching
to another interface. Setting and resetting this bit shall initialize the CRC
logic. If LASTTX is set, this bit can be reset to RX mode and UART logic will
automatically change mode to RX when TX operation is completed
(TX_Empty =1).
STXCtl.0 BREAKD
Break Detected – (Read only) 1 = A break has been detected on the I/O line
indicating that the smart card detected a parity error. Cleared when read.
This bit generates TXERR interrupt.