Intel 386 User Manual page 232

Embedded microprocessor
Table of Contents

Advertisement

BYTE
_CascadeBits_
/*****************************************************************************
InitICU
Description:
Initialization for both the master and slave Interrupt Control
Units (ICU). tine only initializes the internal interrupt
controllers, external ICUs must be initialized separately. These
should be initialized before interrupts are enabled(i.e., enable()).
Parameters:
MstrMode
MstrBase
MstrCascade
SlaveMode
SlaveBase
MstrPins
SlavePins
Returns:Error Code
E_OK
Assumptions:
REMAPCFG register has Expanded I/O space access enabled (ESE bit set).
Syntax:
#define ICU_TRIGGER_EDGE
#define MPIN_INT0
#define MCAS_IR1
#define SPIN_INT4
int error_code;
error_code = InitICU(ICU_TRIGGER_EDGE,
= 0x4;
Mode of operation for Master ICU
Specifies the base interrupt vector number for the
Master interrupts.
For example, if IR1 of the master goes active and the
MstrBase = 0x20, the processor uses interrupt
vector table entry 0x21.
Which Master IRQs are used for Slave ICUs.
Mode of operation for Slave ICU
Specifies the base interrupt vector number for the
Slave interrupts.
For example, if IR1 of the slave goes active and the
SlaveBase = 0x40, the processor uses interrupt
vector table entry 0x41.
Defines what EX pins are available externally to the
chip for the Master.
Defines what EX pins are available externally to the
chip for the Slave.
-- Initialized OK, No error.
0x0
0x4
0x2
0x1
0x20,
MCAS_IR1,
ICU_TRIGGER_EDGE,
0x30,
MPIN_INT0,
SPIN_INT4);
INTERRUPT CONTROL UNIT
9-33

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Intel386 exIntel386 extbIntel386 extc

Table of Contents