hi i am final year student of electrical engineering and doing a project on 8051 microcontroller. in this project,i have to interface the 8051 to maltab for real world data.i successfully complete the interfacing and communicate serially on proteus.data which is transfer from 8051 to matlab is not accurate when i send more than one character.in single character, matlab does not show any data.plz help me,how to solve that problem as i am using 8051 first time.
#include <reg51.h> void main(void) { PCON=0xFF; //to set PCON.7 for baud rate TMOD=0x20; //timer 1 mode 2 TH1=0xFA; //for baud rate 9600 SCON=0x50; TR1=1; //start timer 1 while (1) { SBUF='U'; //sends U while(!TI); TI=0; } }