NULL
This commit is contained in:
97
user/Core/D9V2VHH_DP1703V10.h
Executable file
97
user/Core/D9V2VHH_DP1703V10.h
Executable file
@@ -0,0 +1,97 @@
|
||||
/********************************************************************************************************
|
||||
** D9V2 VHH<48><48><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӳ<EFBFBD><D3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD>ļ<EFBFBD>
|
||||
**
|
||||
** Copyright (c) Siargo, Ltd. 2011
|
||||
** All Rights Reserved.
|
||||
**
|
||||
********************************************************************************************************/
|
||||
#ifndef __D9V2VHH_DP1703V10_h__
|
||||
#define __D9V2VHH_DP1703V10_h__
|
||||
|
||||
//##############################################################################
|
||||
#if(1)
|
||||
//##############################################################################
|
||||
#define VHH_MIN 10000
|
||||
#define VHH_MAX 60000
|
||||
|
||||
#define NRH_MIN 5000
|
||||
#define NRH_MAX 18000
|
||||
|
||||
#define RH_GAINRES_MAX 15000
|
||||
#define RH_GAINRES_MIN 3000
|
||||
//******************************************************************************
|
||||
#define DIVHX_HIGH_DEFAULT 32768
|
||||
#define DIVHX_ROOM_DEFAULT 32768
|
||||
#define DIVHX_LOW_DEFAULT 32768
|
||||
|
||||
#define VDUGX_HIGH_DEFAULT 32768
|
||||
#define VDUGX_ROOM_DEFAULT 32768
|
||||
#define VDUGX_LOW_DEFAULT 32768
|
||||
|
||||
/******************************************************************************/
|
||||
//for compute RH in normal control
|
||||
/******************************************************************************/
|
||||
//#define VREF 2450.0
|
||||
#define RREF_RA 33000.0
|
||||
#define RREF_RB 2800.0
|
||||
#define VREF_VDC (float)(VREF*RREF_RB/(RREF_RA+RREF_RB))
|
||||
/******************************************************************************/
|
||||
// For comput VRH
|
||||
#define VRH_VREF (VREF/(VRH_ADC_GAIN*32768))
|
||||
|
||||
/******************************************************************************/
|
||||
//Compute IRH
|
||||
#define VHH_R56 56.0
|
||||
#define VHH_VREF (VREF/(VHH_ADC_GAIN*32768)) //Vref/(32768*ADCGain*R56)
|
||||
#define VHH_VDC VREF_VDC
|
||||
|
||||
//*******************************************************************************
|
||||
// For comput VRR
|
||||
#define VRR_VDC VREF_VDC
|
||||
#define VRR_VREF (VREF/(VRR_ADC_GAIN*32768))
|
||||
#define RR_REF 75000.0
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#include "../User/Main/GlobeTypeDef.h"
|
||||
|
||||
/******************************************************************************/
|
||||
#define RH_PARA_DEFAULT 32768
|
||||
/******************************************************************************/
|
||||
extern u32 compareBaseCounter;
|
||||
extern u16 compareBaseValue;
|
||||
extern u16 RhExtGainRes,offsetGCFX;
|
||||
extern u16 DIVHHigh, DIVHRoom, DIVHLow;
|
||||
extern u16 VDUGXHigh, VDUGXRoom, VDUGXLow;
|
||||
extern u16 DIVHHigh, DIVHRoom, DIVHLow;
|
||||
extern u16 VDUGXHigh, VDUGXRoom, VDUGXLow;
|
||||
extern u16 offsetAir, offsetAirGainx, offsetGasGainx;
|
||||
extern u16 NRHHigh, NRHRoom, NRHLow,VHHHigh, VHHRoom, VHHLow;
|
||||
extern u16 P0RhLow, P0RhHigh;
|
||||
/******************************************************************************/
|
||||
void RHCircuitParameterInit(void);
|
||||
void CalibrateOffset(void);
|
||||
void CalibrateGasOffset(void);
|
||||
void ComputeRHParameter(void);
|
||||
void ComputeRRParameter(void);
|
||||
void ComputeBATTParameter(void);
|
||||
void ComputeRHGParameter(void);
|
||||
void ComputeRHHHParameter(void);
|
||||
void ComputeVDUParameter();
|
||||
void ComputeGVDUParameter();
|
||||
void PreCalibrationParameterWriting(void);
|
||||
void LowTemperatureParameterWriting(void);
|
||||
void HighTemperatureParameterWriting(void);
|
||||
void SaveVHHAndNRHInTempretureMode(void);
|
||||
|
||||
//##############################################################################
|
||||
#endif
|
||||
//##############################################################################
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user