Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

sending data using Matlab

Status
Not open for further replies.

saurabh17g

New Member
I am using Matlab to send data to ATmega32 using serial RS232 communication.


s = serial('COM1');
set(s,'BaudRate',9600);
fopen(s);
fprintf(s,<data>);

out = fscanf(s);
fclose(s);

expected output: <data>

but the output is coming as : 00001010 <data> 00001010
need some help in fixing it!
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top