Elan Digital Systems Ltd.
34
HD717 USER’S
GUIDE
WriteSCCReg(WR0,0x38);
//issue Reset Highest IUS to SCC
ClrHD717RegBit(PCRReg,IRQInServiceBit);
//re-enable interrupts
IssueEOIToPIC();
//re-enable interrupts on PC IRQ controller
}
Note that unmasking an interrupt via the IMR register actually
removes the clear from the flip flop holding the interrupt. This
means that unmasking an interrupt is different to using the MIRQEn
bit in the PCR to “block” interrupts. If you want to block and hold
cleared an interrupt source, use the IMR register bits. In some
conditions, the IMR bits are also used to clear a pending interrupt by
setting a bit to ‘0’ ‘1’ ‘0’ in software.