Vectored interrupt controller (vic) flow, Configurable system attributes, Pll configuration – Digi NS9215 User Manual

Page 151

Advertising
background image

. . . . .

S Y S T E M C O N T R O L M O D U L E

Vectored interrupt controller (VIC) flow

www.digiembedded.com

151

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

V e c t o r e d i n t e r r u p t c o n t r o l l e r ( V I C ) f l o w

This is how the VIC flow works:

1

An interrupt occurs.

2

The CPU branches to either the IRQ or FIQ interrupt vector.

3

If the CPU goes to the IRQ vector, the CPU reads the service routine address from
the VIC’s ISADDR register. The READ updates the VIC’s priority hardware to
prevent current or any lower priority interrupts from interrupting again. The
CPU must not read the ISADDR register for FIQ interrupts.

4

The CPU branches to the Interrupt Service Routine (ISR) and stacks the
workspace so the IRQ can be enabled.

5

The CPU enables the IRQ interrupts so higher priority interrupts can be serviced.

6

The CPU executes the interrupt service routine.

7

The CPU clears the source of the current interrupt.

8

The CPU disables the IRQ and restores the workspace.

9

If IRQ, the CPU writes the level value of the interrupt being serviced to the
ISADDR register to clear the current interrupt path in the VIC’s priority
hardware.

10

The CPU returns from the interrupt.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

C o n f i g u r a b l e s y s t e m a t t r i b u t e s

System software can configure these system attributes:

Little endian/big endian mode

Watchdog timer enable

Watchdog timeout generates IRQ/FIQ/RESET

Watchdog timeout interval

Enable/disable ERROR response for misaligned data access

System module clock enables

Enable access to internal registers in USER mode

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

P L L c o n f i g u r a t i o n

Hardware strapping determines the initial powerup PLL (see “Bootstrap
initialization” on page 152). After
powerup, software can change the PLL settings
by writing to the PLL Configuration register.

Advertising