Interrupts
20-16
ADSP-214xx SHARC Processor Hardware Reference
Listing 20-1. Enabling DPI UART Interrupts
bit set mode1 IRPTEN; /* enables global interrupts */
bit set imask P1I; /* unmasks P1I interrupt */
ustat1=dm(PICR0); /* route UART0_RXI 0x13 to P1I */
bit set ustat1 P1I4|P1I1|P1I0;
bit clr ustat1 P1I3|P1I2;
dm(PICR0)=ustat1;
UART
The UART receive and transmit interrupts can also be programmed
through the peripheral interrupt control registers (
PICRx
) as separate inter-
rupts. (By default, these interrupts are not configured in the
IRPTL
register—the
PICRx
register has to be programmed to configure them.)
This method shown in
PICR
register with the code
value of the
UART_RXI
or
UART_TXI
interrupts.
Listing 20-2. Enabling UART Interrupts
bit set mode1 IRPTEN; /* enables global interrupts */
bit set imask P1I; /* unmasks P1I interrupt */
ustat1=dm(PICR0); /* route UART0_RXI 0x13 to P1I */
bit set ustat1 P1I4|P1I1|P1I0;
bit clr ustat1 P1I3|P1I2;
dm(PICR0)=ustat1;
The following sections provide information on all of the available inter-
rupt sources.
DMA Interrupts
With system DMA enabled, the UART uses DMA to transfer data to or
from the processor. Dedicated DMA channels are available for receive and
transmit operations. Line error handling can be configured completely
independently from the receive/transmit setup.
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...