beautypg.com

4 generating interrupts, Generating interrupts - 9, General interrupt enable register, bit map - 9 – Kontron CP382 User Manual

Page 51: General interrupt pending register, bit map - 9, Output status register, bit map - 9, Cp382 configuration

background image

CP382

Configuration

ID 24208, Rev. 01

© 2002 PEP Modular Computers GmbH

Page 4 - 9

4.3.4

Generating Interrupts

A detected fail flag set in the register can trigger an interrupt.

1. Check if the board is the cause of the interrupt (General Interrupt Pending is set)
2. If yes, check the reason for the interrupt by reading the fail flag in the output status reg-

ister

3. Reset the corresponding Flag by writing a 1 to a set status bit (fail).
4. Reset the boards’ IRQ by resetting the General Interrupt Pending Bit by writing a 1 to that

status bit

5. Return from Interrupt

Note...

The board will continue issuing an interrupt until all interrupt sources are com-
pletely dealt with and no interrupt condition remains.

A set bit means that the boards’ interrupt is enabled.

Table 4-7:

General Interrupt Enable Register, Bit Map

Bits

Type

Default

Function

31

r/w

0

Board Interrupt Enable

29 - 0

r/w

0

Reserved

Table 4-8:

General Interrupt Pending Register, Bit Map

Bits

Type

Default

Function

31

r/w

0

Board Interrupt Pending

29 - 0

r/w

0

Reserved

Note...

A set bit means that the boards’ interrupt is pending. A board interrupt must be
cleared by writing a "1" to the corresponding output irqen event flag.

Table 4-9:

Output Status Register, Bit Map

Bits

Type

Default

Function

31

r

0

Fail

30

r

0

Diag

29 - 0

r

0

Reserved