⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 calibration.c

📁 cypress cy3721做的外部无线结点。感知温度后将温度值反给中心结点。
💻 C
字号:
//*****************************************************************************
//*****************************************************************************
//  FILENAME:  calibration.c              
//  @Version@
//  `@PSOC_VERSION`
//
//  DESCRIPTION:  This files contains the calibration constansts for the
//                ADC. Currently these values are default values that
//                are not calibrated.
//
//-----------------------------------------------------------------------------
//      Copyright (c) Cypress MicroSystems 2004. All Rights Reserved.
//*****************************************************************************
//*****************************************************************************

#pragma abs_address:0x1F80
const int CountsPerVolt = 25206;   // ADC gain for 0 to 2.6 volt range.  
#pragma end_abs_address

#pragma abs_address:0x1F82
const int ADC_Offset    = 0;       // ADC offset in counts
#pragma end_abs_address

#pragma abs_address:0x1F84
// This array of offsets allows for custom calibration
// of each input that uses the mVolts channel. The offset
// will be in the drivers native units.  For the mVolts
// driver it will be in mVolts.  For a temperature driver
// it will be in tenths of degrees, etc.
const int imVolts_Chan_Offset[32] = {
									0,0,0,0,0,0,0,0,
									0,0,0,0,0,0,0,0,
									0,0,0,0,0,0,0,0,
									0,0,0,0,0,0,0,0,
								   };
#pragma end_abs_address

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -