TMP92CF30
2009-06-12
92CF30-457
This section describes how to calculate the CRC16 of the transmit data and to append the
calculated CRC value at the end of the transmit data. Figure 3.17.7 below illustrates the
flow chart of the CRC calculation procedures.
(1) Program the SPICT<CRC16_7_B> bit to select the CRC algorithm from CRC7 and
CRC16. Then, also program the CRCRX_TX_B bit to specify the data on which the
CRC calculation is performed.
(2) To reset the SPICR register, write a “0” to the CRCRESET_B bit and then write a “1” to
the same bit.
(3) Load the SPITD register with the transmit data, and wait until transmission of all data
is completed.
(4) Read the SPICR register and obtain the result of the CRC calculation.
(5) Transmit the CRC obtained in step (4) in the same way as step (3).
The CRC calculation on the receive data can be performed in the same procedures.
Figure 3.17.7 Flow Chart of the CRC Calculation Procedures
Start
CRC16_7_B
=
“1”,
CRCRX_TX_B
=
“0”
CRCRESET_B
=
“0”
→
“1”
Transmit all data
Read CRC from SPICR
Write CRC in SPITD and send
Finish
Summary of Contents for TLCS-900/H1 Series
Page 652: ...TMP92CF30 2009 06 12 92CF30 650 ...