MOTOROLA
Chapter 23. UART Modules
23-29
Operation
23.5.6.1 Interrupt and DMA Request Initialization
23.5.6.1.1 Setting up the UART to Generate Core Interrupts
The list below gives the steps needed to properly initialize the UART to generate an
interrupt request to the core.
1. Initialize ICRx register in the interrupt controller (ICR13 for UART0, ICR14 for
UART1, and ICR15 for UART2)
2. Unmask appropriate bits in IMR in the interrupt controller (bits 13-15 for
UART0-UART2 respectively)
3. Verify DMAREQC (in SCM) does not assign UARTs to DMA channels
4. Initialize interrupts in the UART, see Table 23-13
23.5.6.1.2 Setting up the UART to Request DMA Service
The UART DMA request pin uses its interrupt pin to connect to the DMA. The user must
mask the UART interrupt in the interrupt control register when DMA requests are required.
The DMA should be configured for external requests (using the DMAREQC register) and
the source address set to the UART’s receive buffer (URB).
The UART may request DMA transfers on FIFO not empty or FIFO full. The user selects
the request source by setting bit 6 in the UART’s mode register 1 (UMR1). Setting UMR1
bit 6 = 0 allows DMA request on FIFO not empty, while setting UMR1 bit 6 = 1 allows
DMA requests on FIFO full. The user should then set bit 1 in the UART interrupt mask
register (UIMR[FFULL]).
In the case where DMA requests are set for UART FIFO full condition, once all the FIFO
stack positions are filled with data, the UART asserts its DMA request signal (via its
interrupt pin). Once the first data byte is read from the FIFO, the DMA request signal is
negated, and the FIFO stack is popped. However, the DMA may read the full contents of
the FIFO stack (if the DMA byte count register is set to 3 and the DMA control register is
not set for cycle steal).
Table 23-13. UART Interrupts
Register
Bit
Interrupt
UMR1x
6
RxIRQ
UIMRx
7
Change of State (COS)
UIMRx
2
Delta Break
UIMRx
1
RxFIFO Full
UIMRx
0
TxRDY
Summary of Contents for ColdFire MCF5281
Page 124: ...3 20 MCF5282 User s Manual MOTOROLA EMAC Instruction Set Summary ...
Page 141: ...MOTOROLA Chapter 5 Static RAM SRAM 5 5 SRAM Programming Model ...
Page 142: ...5 6 MCF5282 User s Manual MOTOROLA SRAM Programming Model ...
Page 168: ...6 26 MCF5282 User s Manual MOTOROLA Interrupts ...
Page 186: ...7 18 MCF5282 User s Manual MOTOROLA Functional Description ...
Page 228: ...9 22 MCF5282 User s Manual MOTOROLA Functional Description ...
Page 246: ...10 18 MCF5282 User s Manual MOTOROLA Low Power Wakeup Operation ...
Page 254: ...11 8 MCF5282 User s Manual MOTOROLA Memory Map and Registers ...
Page 264: ...12 10 MCF5282 User s Manual MOTOROLA Chip Select Registers ...
Page 280: ...13 16 MCF5282 User s Manual MOTOROLA Misaligned Operands ...
Page 314: ...14 34 MCF5282 User s Manual MOTOROLA MCF5282 External Signals ...
Page 339: ...MOTOROLA Chapter 15 Synchronous DRAM Controller Module 15 25 SDRAM Example ...
Page 340: ...15 26 MCF5282 User s Manual MOTOROLA SDRAM Example ...
Page 356: ...16 16 MCF5282 User s Manual MOTOROLA DMA Controller Module Functional Description ...
Page 408: ...17 52 MCF5282 User s Manual MOTOROLA Buffer Descriptors ...
Page 446: ...20 24 MCF5282 User s Manual MOTOROLA Interrupts ...
Page 474: ...22 18 MCF5282 User s Manual MOTOROLA Programming Model ...
Page 510: ...23 36 MCF5282 User s Manual MOTOROLA Operation ...
Page 526: ...24 16 MCF5282 User s Manual MOTOROLA I2C Programming Examples ...
Page 672: ...28 12 MCF5282 User s Manual MOTOROLA Functional Description ...
Page 718: ...29 46 MCF5282 User s Manual MOTOROLA Motorola Recommended BDM Pinout ...
Page 750: ...32 8 MCF5282 User s Manual MOTOROLA Ordering Information ...