找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

STM32控制HMI串口屏发送指令字符串后,串口屏无响应温度没有改变

查看数: 2483 | 评论数: 2 | 收藏 1
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2020-10-11 16:45

正文摘要:

#include "stm32f10x.h" #include "usart.h" #include "delay.h" #include "mlx90614.h" #include "sys.h" extern uint8_t aRxBuffer[100]; extern uint8_t aRxCounter; extern uint8 ...

回复

ID:36656 发表于 2020-10-12 15:45
用串口调试助手看下你单片机发送的数据是什么
ID:36656 发表于 2020-10-12 15:43
               if(x==1)
                {
                        DEBUG_USARTx = USART1;
                        printf("x0.val=%d",(int)(Temperature*10));   //x0.val=%d为向串口屏发送的指令
                        usart_pm_end();
                        delay_ms(500);
                        if(x==2)
                {
                        DEBUG_USARTx = USART1;
                        //printf("x0.val=a10");    ////x0.val=%d为向串口屏发送的指令
                }
                }

小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表