![Geehy SEMICONDUCTOR APM32F405 Series Скачать руководство пользователя страница 301](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f405-series/apm32f405-series_user-manual_573630301.webp)
www.geehy.com Page 300
Reset value: 0x0000 0000
x is 0…4, that is, there are 5 registers, each of which is used to store digest
results.
[31:0] bit of HASH_DIG0 register is DIG0, [31:0] bit of HASH_DIG1 register is
DIG1, and so on.
Field
Name
R/W
Description
31:0
DIGx
R
HASH Digest
HASH interrupt register (HASH_INT)
Offset address: 0x20
Reset value: 0x0000 0000
Field
Name
R/W
Description
0
INDATA
R/W
Data Input Interrupt Enable
0: Disable
1: Enable
1
DCALC
R/W
Digest Calculation Completion Interrupt Enable
0: Disable
1: Enable
31:2
Reserved
HASH state register (HASH_STS)
Offset address: 0x24
Reset value: 0x0000 0001
Field
Name
R/W
Description
0
INDATAINT
RC_W0
Data Input Interrupt Status
When 16 bits of the input buffer are idle, this bit will be set by the
hardware. Write 0 to this bit or write to HASH_INDATA register
and this bit can be cleared.
0: There are no 16 idle bits in input buffer
1: A new block can be input into the input buffer. If HASH_INT
[DCALC]=1, an interrupt will be generated.
1
DCALCINT
RC_W0
Digest Calculation Completion Interrupt Status
This bit will be set by hardware when the digest is ready. Write 0
to this bit or write 1 to HASH_CTRL [INITCAL] and this bit can be
cleared.
0: There is no digest in HASH_DIGx register
1: The finished digest calculation is stored in HASH_DIGx
register. If HASH_INT [DCALC]=1, an interrupt will be generated.
2
DMA
R
DMA Status
This bit is set at the same with DMAEN, and when DMAEN=0 and
DMA transmission is not conducted, this bit will be cleared to 0.
This bit is not associated with interrupt.
0: DMAEN=0 and transmission is not conducted
1: DMAEN=1 or transmission is ongoing