PC与51单片机串口通信(17)

时间:2025-07-13

PC与51单片机串口通信。包括单片机内运行的程序,及MATLAB调试助手简易程序等!

'请检查串口连接或串口已打开'],'串口打开错误');

rethrow(lasterror); end

guidata(hObject, handles);

% --- Outputs from this function are returned to the command line. function varargout = chuankoutongxingmatlab_OutputFcn...

(hObject, eventdata, handles)

varargout{1} = handles.output;

% --- Executes on button press in pushbutton2.

function pushbutton2_Callback(hObject, eventdata, handles) delete(handles.figure1);%关闭对话框

% --- Executes on button press in pushbutton1.

function pushbutton1_Callback(hObject, eventdata, handles) global port; global data;

data=get(handles.edit2,'string'); fprintf(port,data);

function edit2_Callback(hObject, eventdata, handles)

% --- Executes during object creation, after setting all properties. function edit2_CreateFcn(hObject, eventdata, handles) if ispc && isequal(get(hObject,'BackgroundColor'),...

get(0,'defaultUicontrolBackgroundColor'))

set(hObject,'BackgroundColor','white'); end

function edit1_Callback(hObject, eventdata, handles)

PC与51单片机串口通信(17).doc 将本文的Word文档下载到电脑

精彩图片

热门精选

大家正在看

× 游客快捷下载通道(下载后可以自由复制和排版)

限时特价:7 元/份 原价:20元

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219