barathwaj555
Newbie level 5
I am using matlab 2010b version.
s=serial('COM6','BaudRate',9600);
fopen(s);
fprintf(s,'b');
output = fscanf(s);
I used this codeto sent data to P89v51rd2 microcontroller. but i didnt get any response in the controller. The matlab shows busy when this code is executed. i used
unsigned char a;
P1=0x00;
a=RX();
if(a=='b')
P1_3=1;
i used this code in tric compiler to burn in the controller.
the specified pin doesnt show 1.
Can anyone tel me the reason???
s=serial('COM6','BaudRate',9600);
fopen(s);
fprintf(s,'b');
output = fscanf(s);
I used this codeto sent data to P89v51rd2 microcontroller. but i didnt get any response in the controller. The matlab shows busy when this code is executed. i used
unsigned char a;
P1=0x00;
a=RX();
if(a=='b')
P1_3=1;
i used this code in tric compiler to burn in the controller.
the specified pin doesnt show 1.
Can anyone tel me the reason???