This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

AT89C51ED2 UART not work?

I downloaded AT89C51ED2 UART source code from ATMEL web.
when I connected from PC COM1 to AT89C51ED2 and sended a byte data, it sended a wrong byte data back.

Have some solutions about this @@?

Parents
  • I am sure the connections is right.
    because it is a development kit board.
    The board use the same port which is RS232 DB9 connector to download the hex file(use FLIP).

    The C source file was downloaded from ATMEL.
    I don't modify it.
    The SPI example(ATMEL) is work, and the UART example cant...>_<

    I had search the internet, someone says that
    maybe the UART use 9bit or else.
    It makes the PC COM1 can't read correct.

    PS. I dont have oscilloscope, I just a student. >_<

Reply
  • I am sure the connections is right.
    because it is a development kit board.
    The board use the same port which is RS232 DB9 connector to download the hex file(use FLIP).

    The C source file was downloaded from ATMEL.
    I don't modify it.
    The SPI example(ATMEL) is work, and the UART example cant...>_<

    I had search the internet, someone says that
    maybe the UART use 9bit or else.
    It makes the PC COM1 can't read correct.

    PS. I dont have oscilloscope, I just a student. >_<

Children