SIM Port Controller
MOTOROLA
SmartCard Interface Module (SIM)
25-17
25.4.6 SIM CRC Block
The SIM provides an 16-bit CRC generator/checker. The block is provided for use with T = 1 SmartCards
that support CRC. This block is enabled through the CRC enable (CRCEN) bit in the CNTL register. This
block performs a polynomial based check on all received or transmitted characters. A description of the
polynomial is shown in Figure 25-15 on page 25-17.
Figure 25-15. Cyclic Redundancy Check Circuit Diagram
At the end of the reception of a block of characters, the residual from the CRC calculation is compared to
0x1D0F. If it matches correctly, the CRCOK bit is set in the RCV_STAT register. During transmission, the
CRC block updates the current value of each character in the CRC residual. When the
XMT_EN_LRC_CRC bit in the CNTL register is set, the CRC value is automatically inverted and sent by
the SIM transmitter as the final two characters when the transmit FIFO empties.
Input/Output
Data Stream
• Update every bit time
• Reset to 1s at SOP
Generated Polynomial
next bit
16
16
16
16
MUX
0
0
1
1
0 0 0
0 0 0 0 0 0 1 0 0 0 1
Output
Data Stream
TRANSMIT
RECEIVE
CRC16 Transmitted MSB
first after final data byte
Expected Residual
16
0 1
0
0
1 1
1
0
0
0
0
1 1 1 1
Good CRC
Bad CRC
Equal?
Yes
No
0
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 ...