WB_JPGDEC_V2 - Interrupts
The WB_JPGDEC_V2 provides for a single external interrupt line to the host processor. This line – INT_O – will be taken High if any of the following readable bits in the Status register become set:
jpgrdy
(STATUS.0)
rempty
(STATUS.1)
wfull
(STATUS.2)
jpgerr
(STATUS.3)
notjpg
(STATUS.4)
corupt
(STATUS.5)
unsup
(STATUS.6)
rst
(STATUS.8)
and provided that the corresponding bit in the Interrupt Mask register is also set.
Clearance of an interrupt requires that the Status register flag causing that interrupt be cleared. The following table summarizes how the interrupt state is cleared for each of these bits.
Interrupt Cause | Action to clear interrupt |
---|---|
jpgrdy | This interrupt, if enabled, will be present as long as the WB_JPGDEC_V2 is in the ready state – after successful decoding of the JPEG image. It is cleared by writing '1' to either the |
rempty | Write new values to the READ_ADDR and READ_COUNT registers. Then write a '1' to this bit to clear it and resume decoding. |
wfull | Write new values to at least one of the following registers: WRITE_STARTADDR, WRITE_ENDADDR, WRITE_OFFSET. Then write a '1' to this bit to clear it and resume decoding. |
jpgerr notjpg corupt unsup | The
The
Clear all specific (and therefore global) error flags by writing '1' to either the |
rst | This interrupt, if enabled, will be present as long as the WB_JPGDEC_V2 is in the idle state. To clear, simply write to the |