自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(0)
  • 资源 (2)
  • 收藏
  • 关注

空空如也

C51-ADS1256-WIFI.zip

#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<X<4.2 #define IDAC0_Value3 114//3.8-4 #define IDAC0_Value4 107//3.6-3.8 #define IDAC0_Value5 100//3.4-3.6 sbit AD_RESET = P1^1;//低脉冲复位 sbit AD_CS = P0^7;//0片选 sbit AD_READY = P1^0;//0==数据准备好了,1没有准备好 sbit WifiLink = P1^2;//有连接输出0,无连接输出1 sbit WifiReady = P1^3;//启动OK输出0,error输出1 typedef struct { unsigned char Status; unsigned char ChMux; unsigned char Adcon; unsigned char Drate; unsigned char io; unsigned char ofc0; unsigned char ofc1; unsigned char ofc2; unsigned char fsc0; unsigned char fsc1; unsigned char fsc2; }ad_struct; typedef struct { unsigned int basecounter; unsigned int WifiLedCounter; unsigned int volatile ADCFreCounter;//频率时间计数 unsigned int ADCFre;//根据频率计算的时间 }counter; typedef struct { //unsigned char address;地址这里不用 unsigned char status; unsigned char CMD;//命令类型 unsigned int datalength;//数据长度 unsigned char datacounter;//存所有使用 unsigned char checkcode;//校验码 unsigned char overtime;//超时时间 unsigned char temp;//中断里缓冲用 unsigned char WorkFlag;//

2021-03-15

超声工作站VC源码

超声工作站VC源码:用VC编写的视频采集卡采集的视频图像处理软件,供大家学习和研究,。。。。。。。。。。。。。。。。。

2017-11-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除