test
This commit is contained in:
+3
-3
@@ -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;
|
||||
|
||||
+8
-7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user