We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi.I am a student at electrical & electronics engineering.My final project is related to this topic.I have a 8051 board that has a serial communication with computer.I have a software that is written on Keil uVision programme and it works properly.My aim is to use Matlab programme instead of using Keil uVision.I tried several times and I saw that Matlab transmits the data to the 8051 board by using serial port but the board doesn't work in spite of receiving the data.I am waiting for you ideas to solve this problem.Thank you for your attention.Bye:))
"When only matlab program is running(Keil is inactive) we measured the data from serial port by using an oscilloscope,we saw that an information transmitted but we don't know if it is the real command or not." http://www.keil.com/forum/docs/thread7219.asp Use a terminal (or a terminal program on a PC; eg, Hypoterminal) to check what is being sent. "But if we run the Keil we don't know if Matlab transmits the data or not." You can have the Keil simulator use the PC's COM port for its simulated serial input and output. See the Manual for details. Run your 8051 code in the Keil simulator, with the simulated UART IO directed to a COM port. Now connect the COM port used by Matlab to the COM port used by the uVision simulator - using a suitable cross-over cable. If you don't have two COM ports on the same PC, you will need to use two PCs! You now have your 8051 code running in the uVision simulator and communication over RS232 with Matlab. Happy debugging!