Public Version
UART/IrDA/CIR Basic Programming Model
www.ti.com
Set the UARTi.
[4] ENHANCED_EN bit to 1.
5. Switch to register configuration mode A to access the UARTi.
register:
Set UARTi.
to 0x0080.
6. Enable register submode TCR_TLR to access UARTi.
(part 2 of 2) and enable or disable
XON any function:
(a) Save the UARTi.
[6] TCR_TLR value.
(b) Set the UARTi.
[6] TCR_TLR to 1.
Set UARTi.
[5] XON_EN to the desired value (0: Disable/1: Enable).
7. Switch to register configuration mode B to access the UARTi.
register:
Set UARTi.
to 0x00BF.
8. Load the new start and halt trigger values for software flow control:
Set the following bits to the desired values:
•
[7:4] AUTO_RTS_START
•
[3:0] AUTO_RTS_HALT
9. Enable or disable special char function and load the new software flow control mode and restore the
UARTi.
[4] ENHANCED_EN value saved in Step 2a:
Set the following bits to the desired values:
•
[5] SPEC_CHAR (0: Disable/1: Enable)
•
[3:0] SW_FLOW_CONTROL
Restore UARTi.
[4] ENHANCED_EN to the saved value.
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 6a.
12. Restore the UARTi.
value saved in Step 1a.
See
, Software Flow Control, to choose the following values:
•
UARTi.
[5] SPEC_CHAR
•
UARTi.
[3:0] SW_FLOW_CONTROL
•
UARTi.
[7:4] AUTO_RTS_START
•
UARTi.
[3:0] AUTO_RTS_HALT
•
UARTi.
[7:0] XON_WORD1
•
UARTi.
[7:0] XON_WORD2
•
UARTi.
[7:0] XOFF_WORD1
•
UARTi.
[7:0] XOFF_WORD2
19.5.2 IrDA Programming Model (UART3 Only)
19.5.2.1 SIR Mode
19.5.2.1.1 Receive
The following programming model explains how to program the module to receive IrDA frame with parity
forced to 1, baud rate = 112.5 Kbs, FIFOs disable, 2 stop bits, 8-bit word length.
1. Disable UART before accessing UARTi.
and UARTi.
Set UARTi.
[2:0] MODE_SELECT to 0x7.
2. Grant access to
and
(
[7] DIV_EN = 0x1
UART3.
= 0x80 (Note: Data format is unaffected by the use and settings of the
UART3.
register in IrDA mode.)
3. Load the new baud rate (115.2Kbs)
UART3.
= 0x1A
UART3.
= 0x00
4. Set SIR Mode
2924
UART/IrDA/CIR
SWPU177N – December 2009 – Revised November 2010
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 ...