This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C1292NCPDT: UART Parity Control

Part Number: TM4C1292NCPDT

Customer has the following question:

1. To clarify the LCRH register field descriptions, to change the UART parity bit to 1 the EPS just needs to be set to 0?

Background: Customer wants to be able to put multiple bytes in the FIFO, some with parity bit forced on and some force off

2. When data is received and goes into the FIFO, will they be able to determine what the parity bit was or will there be an error?

Customer has said they need to be able to determine what the parity bit was when bytes are sent

  

  • Lawrence Wong said:

    1. To clarify the LCRH register field descriptions, to change the UART parity bit to 1 the EPS just needs to be set to 0?

    Background: Customer wants to be able to put multiple bytes in the FIFO, some with parity bit forced on and some force off

    EPS is used to select the parity scheme: even parity or odd parity. Setting EPS 0 will select odd parity scheme. You need to set the PEN bit to enable parity. 

    Lawrence Wong said:

    2. When data is received and goes into the FIFO, will they be able to determine what the parity bit was or will there be an error?

    Customer has said they need to be able to determine what the parity bit was when bytes are sent

    If the parity checking is enabled, then upon receiving the data the UART is going to calculate the expected parity according to the parity scheme (i.e. even or odd) and compare against the parity received in the frame. The parity calculation is done by the hardware I'm not entirely clear as to what you meant by determining what the parity bit was. If the parity checking fails it simply means that something is wrong is in the data.