Public Version
UART/IrDA/CIR Basic Programming Model
www.ti.com
7. Load the new divisor value:
Set the UARTi.
[7:0] CLOCK_LSB and UARTi.
[5:0] CLOCK_MSB fields to the
desired value.
8. Switch to register operational mode to access the UARTi.
register:
Set UARTi.
to 0x0000.
9. Load the new interrupt configuration.(0: Disable the interrupt/1: Enable the interrupt):
Set the following bits to the desired values:
•
[7] CTS_IT
•
[6] RTS_IT
•
[5] XOFF_IT
•
[4] SLEEP_MODE
•
[3] MODEM_STS_IT
•
[2] LINE_STS_IT
•
[1] THR_IT
•
[0] RHR_IT
10. Switch to register configuration mode B to access the UARTi.
register:
Set UARTi.
to 0x00BF.
11. Restore the UARTi.
[4] ENHANCED_EN value saved in Step 3a.
12. Load the new protocol formatting (parity, stop bit, char length) and switch to register operational mode:
Set UARTi.
[7] DIV_EN to 0.
Set UARTi.
[6] BREAK_EN to 0.
Set the following bits to the desired values:
•
[5] PARITY_TYPE_2
•
[4] PARITY_TYPE_1
•
[3] PARITY_EN
•
[2] NB_STOP
•
[1:0] CHAR_LENGTH
13. Load the new UART mode:
Set UARTi.
[2:0] MODE_SELECT to the desired value.
See
, Choosing the Appropriate Divisor Value, to choose the following values:
•
UARTi.
[7:0] CLOCK_LSB
•
UARTi.
[5:0] CLOCK_MSB
•
UARTi.
[2:0] MODE_SELECT
See
, Frame Formatting, to choose the following values:
•
UARTi.
[5] PARITY_TYPE_2
•
UARTi.
[4] PARITY_TYPE_1
•
UARTi.
[3] PARITY_EN
•
UARTi.
[2] NB_STOP
•
UARTi.
[1:0] CHAR_LENGTH
19.5.1.2 Hardware and Software Flow Control Configuration
This section outlines the programming steps to enable and configure hardware and software flow control.
Hardware and software flow control cannot be used at the same time.
NOTE:
Each programming model can be executed starting from any UART register access mode
(register modes, submodes, and other register dependencies). However, if the UART register
access mode is known before executing the programming model, some steps that enable or
restore register access are optional. For more information, see
, Register
Access Modes.
2922
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 ...