Texas Instruments TMS320DM643X DMP Relationship Between ST, EPS, and PEN Bits in LCR, STB Bit

Page 29

www.ti.comRegisters

Table 13. Line Control Register (LCR) Field Descriptions (continued)

Bit

Field

Value

Description

 

 

 

 

2

STB

 

Number of STOP bits generated. STB specifies 1, 1.5, or 2 STOP bits in each transmitted character.

 

 

 

When STB = 1, the WLS bit determines the number of STOP bits. The receiver clocks only the first

 

 

 

STOP bit, regardless of the number of STOP bits selected. The number of STOP bits generated is

 

 

 

summarized in Table 15.

 

 

0

1 STOP bit is generated.

 

 

1

WLS bit determines the number of STOP bits:

 

 

 

• When WLS = 0, 1.5 STOP bits are generated.

 

 

 

• When WLS = 1h, 2h, or 3h, 2 STOP bits are generated.

 

 

 

 

1-0

WLS

0-3h

Word length select. Number of bits in each transmitted or received serial character. When STB = 1, the

 

 

 

WLS bit determines the number of STOP bits.

 

 

0

5 bits

 

 

1h

6 bits

 

 

2h

7 bits

 

 

3h

8 bits

 

 

 

 

Table 14. Relationship Between ST, EPS, and PEN Bits in LCR

ST Bit

EPS Bit

PEN Bit

Parity Option

x

x

0

Parity disabled: No PARITY bit is transmitted or checked

0

0

1

Odd parity selected: Odd number of logic 1s

0

1

1

Even parity selected: Even number of logic 1s

1

0

1

Stick parity selected with PARITY bit transmitted and checked as set

1

1

1

Stick parity selected with PARITY bit transmitted and checked as cleared

 

 

 

 

Table 15. Number of STOP Bits Generated

 

 

Word Length Selected

Number of STOP Bits

Baud Clock (BCLK)

STB Bit

WLS Bits

with WLS Bits

Generated

Cycles

 

 

 

 

 

0

x

Any word length

1

16

1

0h

5 bits

1.5

24

1

1h

6 bits

2

32

1

2h

7 bits

2

32

1

3h

8 bits

2

32

 

 

 

 

 

SPRU997C –December 2009

Universal Asynchronous Receiver/Transmitter (UART)

29

Submit Documentation Feedback

 

 

Copyright © 2009, Texas Instruments Incorporated

Image 29
Contents Users Guide Submit Documentation Feedback Appendix a Revision HistoryList of Figures List of Tables Read This First Purpose of the Peripheral FeaturesUart Supported Features/Characteristics by Instance Functional Block DiagramFeature Support Industry Standards Compliance StatementFifo Uart Block DiagramUart Clock Generation and ControlDlhdll BclkStart Parity STOP1 STOP2 Baud Rate Divisor Value Actual Baud Rate Error %Baud Rate Examples for 27 MHz Uart Input Clock Protocol Description Signal DescriptionsPin Multiplexing Data Format Endianness ConsiderationsParity STOP1 ParityOperation Character Time Four Character Times Fifo ModesCharacter Time for Word Lengths Autoflow Control Uart Interface Using Autoflow DiagramLoopback Control Autoflow Functional Timing Waveforms for RTSInterrupt Support Reset ConsiderationsInitialization Uart Interrupt Requests Descriptions Enable bitsUart Interrupt Request Interrupt Source CommentEmulation Considerations Power ManagementDMA Event Support Exception Processing Changing Operating Mode During Busy Serial CommunicationDivisor Latch Not Programmed Uart RegistersReceiver Buffer Register RBR Access considerationsReceiver Buffer Register RBR Field Descriptions Bit FieldBit Field Value Description Transmitter Holding Register THRTransmitter Holding Register THR Field Descriptions Interrupt Enable Register IER Field Descriptions Interrupt Enable Register IERElsi Etbei Erbi ElsiInterrupt Identification Register IIR Field Descriptions Access considerationInterrupt Identification Register IIR Interrupt Identification and Interrupt Clearing Information Fifo Control Register FCRIIR Bits Interrupt Type Interrupt SourceRxfiftl Fifo Control Register FCR Field DescriptionsDMAMODE11 Txclr Rxclr Fifoen DMAMODE1Line Control Register LCR Field Descriptions Line Control Register LCRDlab EPS PEN STB WLS DlabNumber of Stop Bits Generated Relationship Between ST, EPS, and PEN Bits in LCRST Bit EPS Bit PEN Bit Parity Option STB BitModem Control Register MCR Field Descriptions Modem Control Register MCRLoop AFEFifo mode Non-FIFO modeLine Status Register LSR Line Status Register LSR Field DescriptionsSet Elsi = 1 in IER, an interrupt request is generated Register RBR Divisor Latches DLL and DLHDivisor MSB Latch DLH Field Descriptions Divisor LSB Latch DLL Field DescriptionsCLS REV Peripheral Identification Registers PID1 and PID2CLS TYPUtrst Urrst Power and Emulation Management Register PwremumgmtFree UtrstReference Additions/Modifications/Deletions Document Revision HistoryImportant Notice
Related manuals
Manual 120 pages 29.22 Kb