This commit is contained in:
105042004
2019-08-13 14:17:11 +08:00
parent 4bc2364e07
commit 0539ffbd23
2 changed files with 11 additions and 10 deletions
@@ -674,9 +674,9 @@ static uint16_t VoltFinal = DACposMax;
static uint16_t Step = 0x00F0; // 10 => 0xA0 ~= 30.5 mv
//for DPVCurve SWVCurve
static uint16_t Amplitude = 0x00;
static uint8_t PulseWidth = 0x00;
static uint8_t PulsePeriod = 0x00;
static uint16_t Amplitude;
static uint8_t PulseWidth;
static uint8_t PulsePeriod;
static uint8_t StepTime = 0x18; // 0x30 = 2'd48 ~= 2 second, 24 = 0x18 = 1 sec
static uint8_t PeriodicCounter = 0;
@@ -560,7 +560,7 @@ static void SWVCurve(){
}
}
/*
//working DPV curve
static void DPVCurve(){
static uint8_t ramp0;
@@ -585,21 +585,22 @@ static void DPVCurve(){
}
DAC_outputV(Volt1);
if ( counter == 10) {
counter = 1;
Volt1 = Volt1 + Amplitude;
DAC_outputV(0x0000);
}
else {
counter ++;
Volt1 = Volt1;
DAC_outputV(0xffff);
}
}*/
}
/*
static void DPVCurve(){
static uint8_t counter;
static uint16_t Volt1;
@@ -662,8 +663,8 @@ static void DPVCurve(){
}
*/
static void CVCurve(){
static uint8_t ramp0;