1. 首页
  2. 课程学习
  3. 嵌入式
  4. C51 ADS1256 WIFI.zip

C51 ADS1256 WIFI.zip

上传者: 2021-04-08 10:32:14上传 ZIP文件 7KB 热度 13次
#include "c8051F350.h" #define UART_Status_Wait 0 #define UART_Status_Header1 UART_Status_Wait+1 #define UART_Status_Header2 UART_Status_Header1+1 #define UART_Status_Address UART_Status_Header2+1 #define UART_Status_CMD UART_Status_Address+1 #define UART_Status_Datalength1 UART_Status_CMD+1 #define UART_Status_Datalength2 UART_Status_Datalength1+1 #define UART_Status_Data UART_Status_Datalength2+1 #define UART_Status_Checkout UART_Status_Data+1 #define UART_Status_EndFlag UART_Status_Checkout+1 #define UART_Statues_OK UART_Status_EndFlag+1//数据接收完成 #define UART_START_HEADER1 0X3A #define UART_START_HEADER2 0X5A #define UART_END_HEADER 0X0A #define BOARD_ADDRESS 0X01 //修改大一些防止出现负的电压 #define IDAC1_PT100 140//PT100 #define IDAC1_PT1000 140//PT1000 //一个字=0.015V #define IDAC0_Value1 128 // >=4.2 #define IDAC0_Value2 121//4
用户评论