test DPV
This commit is contained in:
-6
@@ -769,12 +769,6 @@ static void update_ZM_instruction(uint8 *ins) {
|
||||
if(ins[10] | ins[11]){
|
||||
Amplitude = ((uint16_t) (ins[10]) << 8) | (uint16_t) (ins[11]);
|
||||
}
|
||||
if(ins[12]){
|
||||
PulsePeriod = ins[12];
|
||||
}
|
||||
if(ins[13]){
|
||||
PulseWidth = ins[13];
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
+1
-3
@@ -646,7 +646,6 @@ static void DPVCurve(){
|
||||
if( counter <= (PulsePeriod - PulseWidth)) outputV = Volt1;
|
||||
else outputV = Volt2;
|
||||
*/
|
||||
LED_color(DARKLED, 0xff, 0x00, 0x00);
|
||||
DAC_outputV(Volt1);
|
||||
|
||||
// record the output voltage
|
||||
@@ -673,8 +672,7 @@ static void DPVCurve(){
|
||||
|
||||
//check overflow/underflow and prepare for next output
|
||||
|
||||
Volt1 = Volt1 + Amplitude;
|
||||
LED_color(DARKLED, 0xff, 0xfa, 0x64);
|
||||
Volt1 = Volt1 + 0x1000;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user