25-14
MC9328MX1 Reference Manual
MOTOROLA
SmartCard Interface Module (SIM)
the receive threshold (RCV_THRESHOLD) register, the receive data register full flag (RDRF) is set. An
interrupt can be generated by the RDRF flag when the RIM bit in the INT_MASK register is cleared.
Software has no visibility of the receive FIFO pointers. A write to the receive FIFO register (XMT_BUF)
generates an invalid access exception to the ARM920T core.
To flush the receive FIFO, set the RCV_FLUSH bit in the RESET_CNTL register. The flush operation
resets the receive read and write pointers to equal values. All logic associated with the receiver is reset by
the flush operation except for the receiver control registers.
25.3.4.1 Overrun Detection
The receive FIFO logic is responsible for detecting an overrun condition. When a received byte is
transferred from the receive shift register to a receive FIFO that contains 32 unread bytes, the SIM receiver
flags an overrun condition. This condition always sets the overrun error flag (OEF) in the RCV_STATUS
register. The received byte is discarded, leaving the 32 unread bytes in the FIFO unaltered. The SIM
generates a NACK to the SmartCard on an overrun condition when the overrun NACK enable (ONACK)
bit in the CNTL register is set. The SIM continually NACKs SmartCard transmissions until a read of the
receive FIFO occurs.
25.3.5 Character Wait Time Counter
The SIM receiver block includes a 16-bit counter that counts the number of bit times (ETUs) between
received characters. When enabled, the character wait time counter (CWT) starts counting after the STOP
bit(s) of a valid character are received. The counter is synchronized with the receive character bit positions
to allow an accurate count of the number of ETUs between characters. The CWT counter has a 16-bit
programmable comparator. Software can write the expected number of ETUs between characters to the
comparator. When the time between characters exceeds this value, an interrupt flag is set and an interrupt
is generated when the mask is clear.
25.4 SIM Port Controller
The SIM Port Controller block consists of the SmartCard interface, SmartCard presence detect, and
SmartCard auto-powerdown.
25.4.1 SmartCard Interface
The SmartCard clock is generated by the SIM clock generator. The SmartCard reset and SmartCard
voltage enable are controlled by software through the PORT_CNTL registers.
Figure 25-13 illustrates two methods of connecting the SmartCard to the SIM port. The GCAP chip
provides Vcc for the SmartCard and level translators for the remaining signals when interfacing to a 5 V
card, method 2. The SIM can directly access a 3 V SmartCard when the MC9328MX1 I/O voltage is
configured for 2.7V operation, method 1. The 3VOLT bit in the port control (PORT_CNTL) register
configures the SIM port transmit output as bi-directional. This frees up the SIM port receive pin for use as
a general purpose I/O.
Summary of Contents for DragonBall MC9328MX1
Page 68: ...1 12 MC9328MX1 Reference Manual MOTOROLA Introduction ...
Page 86: ...2 18 MC9328MX1 Reference Manual MOTOROLA Signal Descriptions and Pin Assignments ...
Page 116: ...3 30 MC9328MX1 Reference Manual MOTOROLA Memory Map ...
Page 126: ...4 10 MC9328MX1 Reference Manual MOTOROLA ARM920T Processor ...
Page 160: ...8 8 MC9328MX1 Reference Manual MOTOROLA System Control ...
Page 272: ...13 32 MC9328MX1 Reference Manual MOTOROLA DMA Controller ...
Page 281: ...Programming Model MOTOROLA Watchdog Timer Module 14 9 ...
Page 282: ...14 10 MC9328MX1 Reference Manual MOTOROLA Watchdog Timer Module ...
Page 300: ...15 18 MC9328MX1 Reference Manual MOTOROLA Analog Signal Processor ASP ...
Page 438: ...18 16 MC9328MX1 Reference Manual MOTOROLA Serial Peripheral Interface Modules SPI 1 and SPI 2 ...
Page 478: ...19 40 MC9328MX1 Reference Manual MOTOROLA LCD Controller ...
Page 574: ...21 32 MC9328MX1 Reference Manual MOTOROLA Memory Stick Host Controller MSHC Module ...
Page 598: ...23 16 MC9328MX1 Reference Manual MOTOROLA Real Time Clock RTC ...
Page 670: ...24 72 MC9328MX1 Reference Manual MOTOROLA SDRAM Memory Controller ...
Page 726: ...25 56 MC9328MX1 Reference Manual MOTOROLA SmartCard Interface Module SIM ...
Page 736: ...26 10 MC9328MX1 Reference Manual MOTOROLA General Purpose Timers ...
Page 854: ...29 18 MC9328MX1 Reference Manual MOTOROLA I2C Module ...
Page 900: ...30 46 MC9328MX1 Reference Manual MOTOROLA Synchronous Serial Interface SSI ...
Page 942: ...32 26 MC9328MX1 Reference Manual MOTOROLA GPIO Module and I O Multiplexer IOMUX ...