Interrupts
21-16
ADSP-214xx SHARC Processor Hardware Reference
Interrupt Routing
The following sections describe the various possibilities for routing a TWI
interrupt to the interrupt vector table (IVT).
DPI
The TWI interrupt is combined into the digital peripheral interface (DPI)
interrupt. The
DPI_IRPTL
register determines whether an interrupt is gen-
erated.
shows an example of how to enable the TWI over the
DPI.
Listing 21-1. Enabling DPI TWI Interrupts
bit set mode1 IRPTEN; /* enables global interrupts */
bit set imask DPII; /* unmasks DPI interrupt */|
ustat1 = TWI_INT;
dm(DPI_IRPTL_RE) = ustat1; /* unmasks TWI interrupt */
TWI
The TWI receive and transmit interrupts can also be programmed
through the peripheral interrupt control registers (
PICRx
) as separate inter-
Table 21-4. TWI Interrupt Overview
Interrupt
Source
Interrupt Condition
Interrupt
Completion
Interrupt
Acknowledge
Default IVT
DPI TWI
(TX/RX)
– Master (TX completion, TX/RX
buffer service, error)
– slave (initiative, completion,
overflow, error)
Internal transfer
completion
W1C (Write one
to clear) TWI-
IRPTL re
RTI instruction
P14I
TWI(TX/RX)
– Master (TX completion, TX/RX
buffer service, error)
– slave (initiative, completion,
overflow, error)
Internal transfer
completion
W1C (Write one
to clear) TWI-
IRPTL re
RTI instruction
Need to route
TWII (PICRx)
to any PxxI
www.BDTIC.com/ADI
Содержание SHARC ADSP-214 Series
Страница 60: ...Contents lx ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 72: ...Notation Conventions lxxii ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 130: ...Programming Model 2 52 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 264: ...Programming Models 3 134 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 290: ...Programming Model 4 26 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 296: ...Programming Model 5 6 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 396: ...Effect Latency 7 28 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 520: ...Programming Model 10 62 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 616: ...Debug Features 14 22 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 656: ...Programming Model 15 40 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 714: ...Programming Model 19 10 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 1132: ...Register Listing A 306 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...
Страница 1192: ...Index I 34 ADSP 214xx SHARC Processor Hardware Reference www BDTIC com ADI...