![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 656](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630656.webp)
www.geehy.com Page 655
Cyclic redundancy check computing unit (CRC)
Introduction
The cyclic redundancy check (CRC) computing unit can get 32-bit CRC
computing result by calculating the input data through a fixed generator
polynomial, which is mainly used to detect or verify the correctness and integrity
of the data after transmission or saving.
Functional description
Calculation method
Use CRC-32 (Ethernet) polynomial: 0x4C11DB7
(
X
32
+X
26
+X
23
+X
22
+X
16
+X
12
+X
11
+X
10
+X
8
+X
7
+X
5
+X
4
+X
2
+X+1
)
Calculation time
The calculation time is four AHB clock cycles.
Every time a new data is written, the result will be a combination of the last
calculation result and the new calculation result. (Execute operation for the
whole word). Write operation of CPU will be suspended during calculation, so
that "Back-to-back" write or continuous "read" -"write" operation can be
performed for the register CRC_DATA.
Register address mapping
Table 164 CRC Register Address Mapping
Register name
Description
Offset address
CRC_DATA
Data register
0x00
CRC_INDATA
Independent data register
0x04
CRC_CTRL
Control register
0x08
Register functional description
Data register (CRC_DATA)
Offset address: 0x00
Reset value: 0xFFFF FFFF
Field
Name
R/W
Description
31:0
DATA
R/W
32bit Data
As the input register: Store the new data of CRC calculator when writing.
As the output register: Return the results of CRC computing when reading.