SWRU543B January 2019 – June 2025 CC3230S , CC3230SF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
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/MD5 module be programmed to assert an interrupt when the µDMA has completed its last transfer, by programming the SHA DMA Interrupt Mask (DTHE_SHA_IM) register. The SHA DMA Raw Interrupt Status (DTHE_SHA_RIS) register, at CCM offset 0x014, indicates when the µDMA has completed, and can be cleared by the SHA DMA Interrupt Clear (DTHE_SHA_IC) register.
If context and data transfers are to be handled through software in interrupt mode, then the SHA Interrupt Enable (SHAMD5_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 (SHAMD5_IRQSTATUS) register indicates when an interrupt is triggered. Table 19-1 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 SHAMD5_IRQENABLE register should be cleared.
| Event | Description |
|---|---|
| SHAMD5_IRQSTATUS[3]: CONTEXT_OUT | Context output interrupt |
| SHAMD5_IRQSTATUS[1]: DATA_IN | Data input interrupt |
| SHAMD5_IRQSTATUS[0]: CONTEXT_IN | Context input interrupt |