
Rev. 1.00
528 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
26 Cyclic Redundancy Check (CRC)
CRC with PDMA
A PDMA channel with software trigger may be used to transfer data into the CRC unit. If a huge
block data needs to be calculated, the recommended PDMA model is to use the PDMA to transfer
all available words of data and use software writes to transfer the other remaining bytes. To write
data into the CRC unit, the PDMA should use word access method to transfer data from the source
location of memory to the CRC data register (CRCDR) in fixed address mode. Then software can
write any remaining bytes to the CRC data register (CRCDR) and read the CRC calculation result
value from the CRC checksum register (CRCCSR).
Register Map
The following table shows the CRC registers and reset values.
Table 66. CRC Register Map
Register
Offset
Description
Reset Value
CRCCR
0x000
CRC Control Register
0x0000_0000
CRCSDR
0x004
CRC Seed Register
0x0000_0000
CRCCSR
0x008
CRC Checksum Register
0x0000_0000
CRCDR
0x00C
CRC Data Register
0x0000_0000
Register Descriptions
CRC Control Register – CRCCR
This register specifies the corresponding CRC function enable control.
Offset:
0x000
Reset value: 0x0000_0000
31
30
29
28
27
26
25
24
Reserved
Type/Reset
23
22
21
20
19
18
17
16
Reserved
Type/Reset
15
14
13
12
11
10
9
8
Reserved
Type/Reset
7
6
5
4
3
2
1
0
SUMCMPL SUMBYRV SUMBIRV DATCMPL DATBYRV DATBIRV
POLY
Type/Reset RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0
Bits
Field
Descriptions
[7]
SUMCMPL
1’s Complement operation on Checksum Output
0: Disable
1: Enable
[6]
SUMBYRV
Byte Reverse operation on Checksum Output
0: Disable
1: Enable