Article Details

ID: 3665
Case Type: faq
Category: Lattice IP/Reference Design
Related To: UART
Family: LatticeXP2

Search Answer Database

Search Text Image

LatticeXP2: How to define even or odd parity while using Universal Asynchronous Receiver Transmitter (UART) Reference Design (RD1011)?

Description:

To define odd parity for Universal Asynchronous Receiver Transmitter (UART) in a design, set/enable the EPS (Even Parity Select Bit) that is bit 4 of Line Control Register (LCR), so that the Odd Parity is selected.

Please note that Parity Even is an active low signal in intface.vhd/RTL Code @ line #489.

 

So, if you set bit 4 of LCR to 1, then it will be treated as Odd Parity.