文章详情

ID: 3665
实例类型: faq
分类: Lattice IP/Reference Design
相关: UART
产品系列: LatticeXP2

搜索答案数据库

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.