MCZ33781EK Freescale Semiconductor, MCZ33781EK Datasheet - Page 26

no-image

MCZ33781EK

Manufacturer Part Number
MCZ33781EK
Description
IC MASTER DSI 2.02 DIFF 32-SOIC
Manufacturer
Freescale Semiconductor
Datasheet

Specifications of MCZ33781EK

Applications
Automotive Systems
Interface
SPI
Voltage - Supply
4.75 V ~ 5.25 V
Package / Case
32-SOIC (7.5mm Width) Exposed Pad, 32-eSOIC, 32-HSOIC
Mounting Type
Surface Mount
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MCZ33781EK
Manufacturer:
FREESCALE
Quantity:
20 000
CRC GENERATION /CHECKING
CRC value is computed and serially sent as the next n bits
after the LSB of the data. The CRC length, polynomial, and
initial seed are determined by the CRCLEN[3:0],
CRCPOLY[7:0], and CRCSEED[7:0] control register fields.
The message, including the CRC bits, is passed along to a
remote peripheral, which computes a separate CRC value as
the message data is received. If this computed and CRC
does not agree with the CRC value received in the message,
the peripheral device considers the message invalid.
was computed in the peripheral device that is responding. As
the message is received, a separate 0- to 8-bit CRC value is
computed and is compared with the CRC value in the
received message. If these values do not agree, the message
is considered invalid and the ER status bit in the associate
MESSAGE SIZE SPECIAL CASES
be another 8- to 15-bit message, and the response to any
16-bit message is expected to be another 16-bit message.
This gives rise to some special cases when there is a
transition from one message size to a different message size.
Some messages must be long words (16 bits of data), and
others can be short words (8 to 15 bits of data).
DSI formatted short word (8 bits of data and 4 bits of CRC).
26
33781
FUNCTIONAL DEVICE OPERATION
LOGIC COMMANDS AND REGISTERS
Whenever a message is sent on the DBUS, a 0- to 8-bit
Messages received include a 0- to 8-bit CRC value, which
--------------------------------------------------------------------------
-- Calculates the 4-bit CRC (x^4 + 1) serially for 8 to 16 bits of data.
--------------------------------------------------------------------------
able Xor1: std_logic;
end SerialCalculateCRC4;
The response to any 8- to 15-bit message is expected to
The following are examples where the word is a standard
constant CRCPoly: std_logic_vector: = “0001”; -- x^4 +1
constant InitCrc: std_logic_vector: = “1010”;
procedure SerialCalculateCRC4(CRC: input std_logic_vector;Data: in std_logic) is vari-
begin
Xor1: = CRC(3) xor Data;
CRC: = CRC(2 downto 0) & ‘0’; -- Shift left 1 bit
if Xor1 = ‘1’ then
end if;
CRC: = CRC xor CRCPoly
1X4
C3
T
Figure 22. Default CRC Block Diagram
+
0X3
C2
T
Figure 21. CRC Algorithm
+
C1
0X2
T
+
C0
0X1
T
DnRnSTAT register is set at the end of the message along
with the RNE bit.
data pattern received will be all zeros with a CRC value of 0,
which may be detected as a CRC error depending on the
values of CRCLEN[3:0], CRCPOLY[7:0], and
CRCSEED[7:0].
CRC COMPUTATION
value, or seed of CRCSEED[7:0], and a programmable
polynomial of CRCPOLY[7:0].
description of the CRC algorithm for the DBUS standard 4-bit
CRC, with its initial value of 1010. A seed value is chosen so
that a zero data value will generate a CRC value of 1010. A
block diagram of the default CRC calculation is shown in
Figure
the current message is a long word, the response message
(which is also a short word) finishes before the current
message frame, and the CRC bits look like data bits in the
long word format. Since the CRC validation of this short word
message response is not reliable, this short word response
should not be used.
the current message is a short word, the response message
(which is also a long word) cannot finish before the current
message frame. Bits three to zero of the data and the CRC
bits are lost. Data bits seven to four of the 16-bit response
When no remote peripheral responds to a message, the
The CRC algorithm uses a programmable initialization
Example 1: If the previous message was a short word and
Example 2: If the previous message was a long word and
+
22.
+X0
= X4+1
Input Data
Analog Integrated Circuit Device Data
Figure 21
Freescale Semiconductor
is a VHDL

Related parts for MCZ33781EK