vvarlord
Member level 4

i'm trying to send and recieve data over an serial protocol between micro and computer
i recieved data in micro successfully,but the problem is when i write a program to send data to computer
i use matlab for sending and recieving thorough rs232 & use codevisionavr to programg the micro
after i set the baud rate and com number and opened the port,, i use scanf(//serial port name),,,, but instead of getting what's inteded i get this error: a timeout occured before the terminator was reached.
it will be appreciated if can anyone help.
i recieved data in micro successfully,but the problem is when i write a program to send data to computer
i use matlab for sending and recieving thorough rs232 & use codevisionavr to programg the micro
after i set the baud rate and com number and opened the port,, i use scanf(//serial port name),,,, but instead of getting what's inteded i get this error: a timeout occured before the terminator was reached.
it will be appreciated if can anyone help.