Article Details

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

Search Answer Database

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

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.
 
Like most websites, we use cookies and similar technologies to enhance your user experience. We also allow third parties to place cookies on our website. By continuing to use this website you consent to the use of cookies as described in our Cookie Policy.