Elite 1.4-re DAC correction
This commit is contained in:
-1
@@ -72,7 +72,6 @@ static void ADC_Test(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
static ADCGainControl(uint8_t ADCLevel){
|
||||
if(ADCLevel == 0){
|
||||
// ADC gain level = 0, using 200R resister
|
||||
|
||||
+13
@@ -55,4 +55,17 @@ static void DAC_outputV(uint16_t voltLV) {
|
||||
|
||||
#endif
|
||||
|
||||
// User will enter -5V~+5V in UI.
|
||||
// websever and controler use 0~50000 represent -5~+5V
|
||||
// this function should turn 0~50000 into DACcode which output the exactly voltage user want
|
||||
static uint16_t DACCorrectionDecode(uint16_t usercode){
|
||||
|
||||
// DACcode to real_voltage correction function
|
||||
uint16_t DACcode = 0;
|
||||
|
||||
|
||||
return DACcode;
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user