Please tell me how to use Uart2 to exchange data? I Use C51 development and ST uPSD3234A chip.
Do you have some suggestion about this question? I am not sure what this question is. Apparently you have already concluded that your problem was due to a hardware failure. In that case, I will be very interested to know your diagnostic procedure.
For example:
for(i=48;i<58;i++) putchar(i);
Here is what I would do:
TI2=0; //Just in case TI2 has been set.. for (i=48; i<58; i++) { SBUF2=i; //Not sure if SBUF2 is the right //symbol name. Could be S2BUF? while(!TI2) //TI2 will be set by hardware { //upon completion of one byte } TI2=0; }
I tried, but not successful. If you set TI2 to 1 by software. It passed. So sth wrong with the hardware. I believe it. Thank you for your help.
By the way, Which country are you in?