Toshiba H1 Series Data Book page 495

32bit micro controller tlcs-900/h1 series
Table of Contents

Advertisement

(4) SPICR (SPI CRC Register)
CRC result of Transmit/Receive data is set to SPICR register.
7
SPICR
bit Symbol
CRCD7
(826H)
Read/Write
After Reset
0
Function
15
bit Symbol
CRCD15
(827H)
Read/Write
After Reset
0
Function
(a) <CRCD15:0>
The result which is calculated according to the setting; SPICT<CRC16_7_b>,
<CRCRX_TX_B> and <CRCRESET_B>, are loaded to this register.
In case CRC16, all bits are valid.
In case CRC7, lower 7 bits are valid.
The flow will be showed to calculate CRC16 of received data for instance by flowchart.
Firstly, initialize CRC calculation register by writing <CRCRESET_B>= "1" after
setting <CRC16_7_b>= "1", <CRCRX_TX_B>="0", <CRCRESET_B>= "0".
Next, finish transmitting all bits to calculate CRC by writing data in SPITD register.
Please sense SPIST<TEND> to confirm whether receiving is finished.
If read SPICR register after finishing, CRC16 of received data can be read.
Note: CRC is generated in I/O point. Please take care soft ware process to compare the CRC when
used FIFO.
16bit
16bit
SPICR Register
6
5
CRCD6
CRCD5
CRCD4
0
0
CRC result register [7:0]
14
13
12
CRCD14
CRCD13
CRCD12
0
0
CRC result register [15:8]
Figure 3.17.11 SPICR Register
TMP92CZ26A
92CZ26A-492
4
3
2
CRCD3
CRCD2
R
0
0
0
11
10
CRCD11
CRCD10
R
0
0
0
100KΩ
SPDO
100KΩ
SPDI
CRC generation point
TMP92CZ26A
1
0
CRCD1
CRCD0
0
0
9
8
CRCD9
CRCD8
0
0
SPI slave
DI
DO

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tlcs-900Tmp92cz26axbg

Table of Contents