Please tell me how to use Uart2 to exchange data? I Use C51 development and ST uPSD3234A chip.
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?