kishore680
Member level 5
Hi i have written small matlab code
My circuit in proteus
.. IF i send higood. i got this as output in virtual terminal . And the keil code for receiving data serially is
. Please someone tell me whats the fault in circuit or in programme.I need to send data from PC and make sure microcontroller received it properly.Thanku
Code:
s = serial('COM4','BaudRate',9600);
fopen(s);
fprintf(s,'A');
Code:
#include<reg51.h>
void sertex(unsigned char);
void main(void)
{ unsigned char z;
TMOD=0x20;
TH1=0xFD;
SCON=0x50;
TR1=1;
while(1)
{
while(RI==0);
z=SBUF;
P1=z;
RI=0;
}
}