I am interafacing 8051 via serial port.How can i achieve this?

조회 수: 1 (최근 30일)
Tanmay
Tanmay 2011년 4월 6일
답변: Samar 2025년 2월 18일
Can I use Simulink for sending the data to the 8051 via rs232?

답변 (1개)

Samar
Samar 2025년 2월 18일
Hello @Tanmay
As per my understanding you want to the set up an interface between Simulink and 8051 microcontroller. While Simulink does support direct interfacing with some hardwares, 8051 is not one of them. You can find the list of supported hardwares in MathWorks Documentation by typing “doc Simulink supported hardware” in command window.
There is one way in which a communication can be set up. By leveraging the Simulink Coder tool provided by MathWorks. The Simulink Coder generates C and C++ code from Simulink and Stateflow models. This code can then be compiled and run on the 8051 IDE. This will generate a hex file which can uploaded on the microcontroller.
To know more about Simulink Coder, type “doc Simulink Coder” in the command window.
I hope this is beneficial.

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by