Master SH2 vector initial setting | Slave SH2 vector initial settings |
---|---|
40H~SCU interrupt vector | 41H H Blank In ** |
60H SCI reception error | 60H SCI reception error |
* For slave → master passing | * For master → slave passing ** IRL2, IRL6 level interrupt |
Device being reset | OFF or non-warranty device | Unaffected devices |
---|---|---|
SCU | Slave SH (OFF) | Master SH *Note |
This is a dangerous service and can hang the system if there are priority conflicts in the table contents! ! ! | |
SH2 SR lower word value | SCU interrupt mask lower word value |
Value set in SR when interrupt processing starts | At the start of interrupt processing, the value that is ORed with the current mask setting value and written to the SCU interrupt mask register. |
Uint32 PRITab[32]={ |
|
Uint32 PRITab[32]={ |
|
Contrary to the above example, masking interrupts at the SR value level without changing the SCU mask value is prohibited! ! ! (only 0 or 15 possible) |
When an interrupt from a certain source in the SCU is enabled and that interrupt occurs, the SR mask of the SH is higher than the specific level of that interrupt (value determined by the SCU hardware), and the interrupt is rejected by the SH. It's OK if the situation you're in is never possible. (However, as an exception, it is possible to completely ban SR Mask 15) |