SPRUJ17H March 2022 – October 2024 AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1
The SHA/MD5 module can operate in DMA mode, where the module can assert a DMA request for context in, context out, or data input. The DMA signals that can be generated are:
The SHA module be programmed to assert an interrupt when the DMA has completed its last transfer, by programming the SHA DMA Interrupt Mask (S_SHA_IMST ) register. The SHA DMA Raw Interrupt Status (S_SHA_IRIS ) register, at CCM offset 0x014, indicates when the DMA has completed, and can be cleared by the SHA DMA Interrupt Clear (S_SHA_ICIS) register.
If context and data transfers are to be handled through software in interrupt mode, then the SHA Interrupt Enable (S_IRQENABLE ) register can be used to enable interrupt triggering when context out, context in, data in, or data out is ready. The SHA Interrupt Status (S_IRQSTATUS ) register indicates when an interrupt is triggered. Table 7-133 lists interrupts and events.
If the application uses interrupt mode, an interrupt is generated for each block of processed data. To support larger data flow, DMA mode should be used and the bits in the S_IRQENABLE register should be cleared.
Event | Description |
---|---|
S_IRQSTATUS[3]: CONTEXT_READY | Context output interrupt |
S_IRQSTATUS[1]: INPUT_READY | Data input interrupt |
S_IRQSTATUS[0]: OUTPUT_READY | Context input interrupt |