09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Hash processor (HASH) <strong>RM0090</strong><br />

22.4.7 HASH status register (HASH_SR)<br />

Address offset: 0x24<br />

Reset value: 0x0000 0001<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16<br />

Reserved<br />

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

Reserved<br />

Bits 31:4 Reserved, forced by hardware to 0.<br />

Bit 3 BUSY: Busy bit<br />

0: No block is currently being processed<br />

1: The hash core is processing a block of data<br />

615/1416 Doc ID 018909 Rev 3<br />

BUSY DMAS DCIS DINIS<br />

r r rc_w0 rc_w0<br />

Bit 2 DMAS: DMA Status<br />

This bit provides information on the DMA interface activity. It is set with DMAE<br />

and cleared when DMAE=0 and no DMA transfer is ongoing. No interrupt is<br />

associated with this bit.<br />

0: DMA interface is disabled (DMAE=0) and no transfer is ongoing<br />

1: DMA interface is enabled (DMAE=1) or a transfer is ongoing<br />

Bit 1 DCIS: Digest calculation completion interrupt status<br />

This bit is set by hardware when a digest becomes ready (the whole message<br />

has been processed). It is cleared by writing it to 0 or by writing the INIT bit to 1<br />

in the HASH_CR register.<br />

0: No digest available in the HASH_Hx registers<br />

1: Digest calculation complete, a digest is available in the HASH_Hx registers.<br />

An interrupt is generated if the DCIE bit is set in the HASH_IMR register.<br />

Bit 0 DINIS: Data input interrupt status<br />

This bit is set by hardware when the input buffer is ready to get a new block (16<br />

locations are free). It is cleared by writing it to 0 or by writing the HASH_DIN<br />

register.<br />

0: Less than 16 locations are free in the input buffer<br />

1: A new block can be entered into the input buffer. An interrupt is generated if<br />

the DINIE bit is set in the HASH_IMR register.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!