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.

PGA900: UART transmission questions

Part Number: PGA900

Hello,

Our customer use PGA900EVM and host to used the UART for debugging, the UART is not sent regularly, which is inconsistent with the description in datasheet.

According to the datasheet, whenever UART-TX-BUF is written data, PGA900 will automatically send data according to the baud rate and check bit configured by UARY-CONFIG function. When the TX is sent , bit 5 is set to 1 of the UART_LINE_STATUS register, and UART_TX_BUF is cleared when the data is written.

According to the program I wrote to send UART, I should only output ADC_BUFF[0] data during single -step debugging, because after the first send, TX_COMPLETE should set to be zero and cause the statement to fail and break out the loop. But in reality, single-step will output four different sets  of data in sequence. The following is the continuous debugging screenshot:

During continuous debugging, the data received by the host though the UART completely irregular. TX transmission can be sent, but the timing sequence of data transmission doesn't seem to follow the predetermined program.

In addition, the TX_COMPLETE of  UART_LINE_STATUS can only be read not written, and I can't manually set zero to change the sequence of the data sending, so where can I see the specific function of the TX sending in the UART to modify? 

Best regards

kailyn 

  • Hi Kailyn,

    The UART_TXCOMPLETE_INT_EN bit needs to be set to enable the UART interrupt upon completion of a transmission. The UART_LINE_STATUS register is read only, but to clear the interrupt status, you must write 1 to the UART_TX_COMPLETE_! bit in the UART_INTERRUPT_STATUS register.

    I'm not entirely sure if that answered the question, but please let me know if the customer needs more information.

    REgards,

  • Hi Scott,

    Thank you very much for your reply. I would confirm with the customer and then reply to you.

    Best regards

    Kailyn