Public Version
www.ti.com
UART/IrDA/CIR Basic Programming Model
6. Switch to register configuration mode B to access the UARTi.
register:
Set UARTi.
to 0x00BF.
7. Load the new FIFO triggers (part 2 of 3):
Set the following bits to the desired values:
•
[7:4] RX_FIFO_TRIG_DMA
•
[3:0] TX_FIFO_TRIG_DMA
8. Load the new FIFO triggers (part 3 of 3) and the new DMA mode (part 2 of 2):
Set the following bits to the desired values:
•
[7] RX_TRIG_GRANU1
•
[6] TX_TRIG_GRANU1
•
[2:1] DMA_MODE_2
•
[0] DMA_MODE_CTL
9. Restore the UARTi.
[4] ENHANCED_EN value saved in Step 2a.
10. Switch to register configuration mode A to access the UARTi.
register:
Set UARTi.
to 0x0080.
11. Restore the UARTi.
[6] TCR_TLR value saved in Step 4a.
12. Restore the UARTi.
value saved in Step 1a.
Triggers are used to generate interrupt and DMA requests. See
, Transmit FIFO Trigger,
to choose the following values:
•
UARTi.
[5:4] TX_FIFO_TRIG
•
UARTi.
[3:0] TX_FIFO_TRIG_DMA
•
UARTi.
[6] TX_TRIG_GRANU1
Triggers are used to generate interrupt and DMA requests. See
, Receive FIFO Trigger,
to choose the following values:
•
UARTi.
[7:6] RX_FIFO_TRIG
•
UARTi.
[7:4] RX_FIFO_TRIG_DMA
•
UARTi.
[7] RX_TRIG_GRANU1
DMA mode enables the different DMA requests. See
, FIFO DMA Mode Operation, to
choose the following values:
•
UARTi.
[3] DMA_MODE
•
UARTi.
[2:1] DMA_MODE_2
•
UARTi.
[0] DMA_MODE_CTL
19.5.1.1.3 Protocol, Baud Rate, and Interrupt Settings
To program the protocol, baud rate and interrupt settings, perform the following steps:
1. Disable UART to access UARTi.
and UARTi.
:
Set UARTi.
[2:0] MODE_SELECT to 0x7.
2. Switch to register configuration mode B to access the UARTi.
register:
Set UARTi.
to 0x00BF.
3. Enable access to UARTi.
(a) Save the UARTi.
[4] ENHANCED_EN value.
(b) Set the UARTi.
[4] ENHANCED_EN bit to 1.
4. Switch to register operational mode to access the UARTi.
register:
Set UARTi.
to 0x0000.
5. Clear the UARTi.
[4] SLEEP_MODE bit to 0 to change UARTi.
and UARTi.
).Set UARTi.
to 0x0000.
6. Switch to register configuration mode B to access the UARTi.
and UARTi.
registers:
Set UARTi.
to 0x00BF.
2921
SWPU177N – December 2009 – Revised November 2010
UART/IrDA/CIR
Copyright © 2009–2010, Texas Instruments Incorporated
Содержание OMAP36 Series
Страница 174: ...174 List of Tables SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 692: ...692 MPU Subsystem SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 1084: ...1084 IVA2 2 Subsystem SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 1990: ...1990 2D 3D Graphics Accelerator SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2334: ...2334 Memory Subsystem SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2700: ...2700 Memory Management Units SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2868: ...2868 HDQ 1 Wire SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 2974: ...2974 UART IrDA CIR SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3054: ...3054 Multichannel SPI SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3462: ...3462 MMC SD SDIO Card Interface SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3508: ...3508 General Purpose Interface SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3584: ...3584 Initialization SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...
Страница 3648: ...3648 Debug and Emulation SWPU177N December 2009 Revised November 2010 Copyright 2009 2010 Texas Instruments Incorporated ...