TMP92CF30
2009-06-12
92CF30-468
(4)
SPI CRC Register (SPICR)
The SPICR register contains the CRC calculation result for transmit/receive data.
SPICR Register
7 6 5 4 3 2 1 0
Bit Symbol
CRCD7
CRCD6
CRCD5
CRCD4
CRCD3
CRCD2
CRCD1
CRCD0
Read/Write R
Reset
State
0 0 0 0 0 0 0 0
SPICR
(0826H)
Function
CRC result bits [7:0]
15
14
13
12
11
10
9
8
Bit Symbol
CRCD15
CRCD14
CRCD13
CRCD12
CRCD11
CRCD10
CRCD9 CRCD8
Read/Write R
Reset
State
0 0 0 0 0 0 0 0
(0827H)
Function
CRC result bits [15:8]
Figure 3.17.11 SPICR Register
(a)
CRCD15:0
The CRC result which is calculated according to the settings of the CRC16_7_b,
CRCRX_TX_B and CRCRESET_B bits in the SPICT register are loaded into this
register. When using the CRC16 algorithm, all the bits participate in the CRC
generation. When using the CRC7 algorithm, only the lower seven bits participates in
the CRC generation. The following describes the steps required to calculate the CRC16
for the transmit data.
First, initialize the CRC calculation register by writing a “1” to the CRCRESET_B
bit after programming three bits as follows: CRC16_7_b = “1”, CRCRX_TX_B = “0”, and
CRCRESET_B = “0”.
Then, by writing the transmit data into the SPITD register, complete the
transmission of all bits, for which the CRC should be calculated.
The SPIST<TEND> bit should be checked to confirm whether the reception is
completed.
By reading the SPICR register after the transmission is completed, the CRC16 for
the transmit data can be obtained.
Note: The CRC is generated upon data input and output of the TMP92CF30 as illustrated below. The timing of the
CRC comparison should be fully considered when performing Sequential-mode transmit and receive
operation using the FIFOs.
SPITD
T
rans
m
itt/Rec
eiv
e
Controller
SPDO
16 bits
SPIRD
SPDI
DI
DO
100k
Ω
100k
Ω
Internal Dat
a
B
u
s
TX FIFO
8
×
32
RX FIFO
8
×
32
16 bits
RX shift re
gister
TX shft r
egi
ster
TMP92CF30
SPI Slave
CRC generation timing
Содержание TLCS-900/H1 Series
Страница 1: ...TOSHIBA Original CMOS 32 Bit Microcontroller TLCS 900 H1 Series TMP92CF30FG Semiconductor Company ...
Страница 650: ...TMP92CF30 2009 06 12 92CF30 648 7 Package Dimensions LQFP176 P 2020 0 40F TOP VIEW BOTTOM VIEW Detail view of A 25 1 A ...
Страница 652: ...TMP92CF30 2009 06 12 92CF30 650 ...