MSOP8_6711与MSOP8_6713源码

  • 名称:MSOP8_6711与MSOP8_6713源码
  • 类型:单片机学习
  • 授权方式:免费版
  • 更新时间:09-10 23:00:34
  • 下载要求:无需注册
  • 下载次数:6429
  • 语言简体中文
  • 大小:347 KB
  • 推荐度:2 星级
《MSOP8_6711与MSOP8_6713源码》简介

标签:单片机开发,单片机原理,
MSOP8_6711与MSOP8_6713源码

* Function: Format_Data()
* Description: Formats data recieved and returns back to the appropriate
* buffer making the function call. Formatting depends on device used.
* All formatting based on 16 bit word for proper display in CCS "View Graph"
short Format_Data(int data)
{
#if ADS7826 //10-Bit, 4th rising, CKPL = 0
{
data = (data & 0x1FF800);
return (data)>>5;
}
#endif
#if ADS7827 // 8-Bit, 4th rising, CKPL = 0
{
data = (data & 0x1FE000);
return (data)>>5;
}
#endif
#if ADS7816_17_22_29 //12-Bit, 5th rising, CKPL = 0
{
data = (data & 0x0FFF00);
return (data)>>4;
}
#endif
#if ADS7818_34_35 //12-Bit, 2nd rising, CKPL = 0
{
data = (data & 0x7FF800);
return (data)>>7;
}
#endif
#if ADS8320_21_25 //16-Bit, 7th rising, CKPL = 0
{
data = (data & 0x3FFFC); 字串6
return (data)>>2;
}
#endif
#if ADS8324 //14-Bit, 7th rising, CKPL = 0
{
data = (data & 0x3FFF0);
return (data)>>2;
}
#endif
} 专业软件下载

, 大小:347 KB
Tag:单片机学习单片机开发,单片机原理单片机学习

《MSOP8_6711与MSOP8_6713源码》相关下载