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.

question about 6670 uart

Hi all,

I'm currently working on 6670 uart driver. PC send data to DSP via uart. After I've initialized uart, the rx pin of DSP still in low state, the value of LSR was 0xf9, while PC was in

sending state. After the receive buffer has benn read once, the value of LCR is 0x60. I knew that the value of 0xf9 indicated that there have been a framing error and a overrun

error. Why? Is there something wrong with the configuration of uart?

The uart is configured in non FIFO mode, one bit stop, 8 bits data, no patity bit,  the frequency of BCLK is sixteen times (16×) the baud rate, and transmit and receive interrupt is

disabled. I intend to use polling mode to check if there is more data to receive or send.  Could you tell me where the problem was?

Thank you

Best regards

Nick

  • Nick,

    Have you looked at the UART driver code in the MCSDK 2.0? We offer this for free so that you do not have to do what you are doing and do not have to spend the time on this.

    And since we have already debugged one set of code, why should you have to debug the same thing again?

    My recommendation is to use the MCSDK 2.0 driver. If it does not do what you want it to do, then let us know, and then you can start from that code to make changes to get to the functionality that you want.

    Regards,
    RandyP