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

How to set Uart2 ?

Please tell me how to use Uart2 to exchange data?

I Use C51 development and ST uPSD3234A chip.

Parents
  • For example:

       for(i=48;i<58;i++)  putchar(i);
       

    It only sent the char'0',and waited for the TI2 to be set. If you reset the chip, It still the same.

    If you set TI2 to be 1 after sent a char.
    It sent the char continually not right.

    So I think maybe something wrong with my hardware or Uart2 need to be set something by software.

    I used the Development Board to have my test.

    Thank you for your discussion.


Reply
  • For example:

       for(i=48;i<58;i++)  putchar(i);
       

    It only sent the char'0',and waited for the TI2 to be set. If you reset the chip, It still the same.

    If you set TI2 to be 1 after sent a char.
    It sent the char continually not right.

    So I think maybe something wrong with my hardware or Uart2 need to be set something by software.

    I used the Development Board to have my test.

    Thank you for your discussion.


Children