hi, fprintf instruction send text not binary data check fwrite instructionHi i have written small matlab codeMy circuit in proteus View attachment 87800.. IF i send higood. i got this as output in virtual terminal View attachment 87801. And the keil code for receiving data serially isCode:s = serial('COM4','BaudRate',9600); fopen(s); fprintf(s,'A');
. 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.ThankuCode:#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; } }
hi, fprintf instruction send text not binary data check fwrite instructionHi i have written small matlab codeMy circuit in proteus View attachment 87800.. IF i send higood. i got this as output in virtual terminal View attachment 87801. And the keil code for receiving data serially isCode:s = serial('COM4','BaudRate',9600); fopen(s); fprintf(s,'A');
. 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.ThankuCode:#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; } }
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?