Functional Description
MOTOROLA
SmartCard Interface Module (SIM)
25-13
25.3.3.7 Initial Character Detection
The SIM receive state machine supports the detection of special characters that allow it to determine what
data format is being used by the connected SmartCard. When placed in initial character mode, the SIM
expects to receive one of two potential characters that it uses to set the IC bit in the CNTL register. Valid
initial characters are shown in Figure 25-11.
Figure 25-11. Valid Initial Characters
The two possible data formats are inverse convention and direct convention. Figure 25-12 illustrates the
differences between the two formats. Essentially, inverse convention differs from direct convention in that
the order of the data is flipped MSB for LSB, and the data bits and parity bit are logically inverted. When
receiving inverse convention data, the transformation of the data back to direct convention format is
performed by the hardware, including the inversion of the data and parity bits.
Figure 25-12. Inverse Convention vs. Direct Convention
25.3.4 Receive FIFO
The 32 byte deep receive FIFO is implemented inside a sub-block of the receiver block of the
MC9328MX1. The receive FIFO is accessed through the RCV_BUF registers.
The receive FIFO is loaded from the receive shift register after the final bit of the current SmartCard
transmission has been received. The FIFO contains 10 bits per transmission. The lower eight bits contain
the received data byte. Bits 8 and 9 contain the parity and framing status for the received byte.
Each read from the receive FIFO increments the receive FIFO read pointer. Each time the receive shift
register is transferred to the receive FIFO, the receive FIFO write pointer is incremented. When the
difference between the read and write pointers equals the value in the receive data threshold (RDT) bits in
Start
Stop Bits
P
Initial Character from SIM for setting direct convention (seen as $3B
when decoded by direct convention).
Start
Stop Bits
P
Initial Character from SIM for setting inverse convention (seen as
$3F when decoded by inverse convention).
Parity Bit:
When configured for even parity, the total number of logic 1s in the 9 bits (8 bits data, 1 parity bit) is even.
When configured for odd parity, the total number of logic 1s in the 9 bits (8 bits data, 1 parity bit) is odd.
When configured for inverse convention, the parity bit is inverted by SmartCard before being transmitted.
Direct Convention: The LSB of the data byte to be sent is
ba
, the MSB is
bh
. Neither of the data bits nor the parity bit a
logically inverted.
Inverse Convention: The MSB of the data byte to be sent is
ba
, the LSB is
bh
. Both of the data bits and the parity bit are
logically inverted by the SmartCard
Start ba
bb
bc
bd
be
bf
bg
bh
P
Stop Bits
ba
bb
bc
bd
be
Start
Parity Bit
Byte
i
Byte
i+1
12 ETUs min
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 ...