connecting the output microcontroler AT89S52 at matlab

조회 수: 4 (최근 30일)
Soni huu
Soni huu 2013년 1월 22일
How to know the output of microcontroler program on matlab can be read real time
  댓글 수: 2
Walter Roberson
Walter Roberson 2013년 1월 22일
Are you trying to read a particular pin from it, or are you trying to read the UART?
A microcontroller such as that one needs to be mounted in a board. Is that board then placed internally in your system such as a PCI board, or is it an external board with output connectors (e.g., a serial port)
Does the system you are running MATLAB on have a serial port, or does it only have a USB port?
Soni huu
Soni huu 2013년 1월 23일
편집: Soni huu 2013년 1월 23일
yes,...i read the pin microcontroler via RS232 circuit with usb port
matlab read and run directly the system that comes the usb port through the RS232 series from pin microcontroler

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2013년 1월 23일
What does "real time" mean in this situation? USB uses a polled shared-bus packet protocol that is not able to transfer data immediately after the data is generated. By default, USB serial ports collect characters until the packet is full or there have been no new characters for 20 ms. There is a way for controlling software on the transmitting end to request that all accumulated data be sent as soon as possible, but that has to be done on the transmitting end (e.g., at the microcontroller end if you are transmitting data from there); MATLAB does not have any interface to request immediate transfer when MATLAB is doing the transmitting.

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by