fixup! This is a stable version. 11/28 sell to NCKU with CC mode IV mode return Vin

This commit is contained in:
weiting2
2019-11-27 19:12:44 +08:00
parent 03a1e5a633
commit 9fa2c0eb1a
@@ -95,6 +95,12 @@ static void CCModeDACControl(CCMode *CC, int32_t IUC_Measure_Difference){
INSTRUCTION.VoltConstant = INSTRUCTION.VoltConstant + step;
}
DAC_outputV(Usercode_Correction_to_DAC(INSTRUCTION.VoltConstant));
step = (CC->VMin - CC_ZERO_POINT)/5;
NotifyVolt[0] = (uint8_t) (step >> 24);
NotifyVolt[1] = (uint8_t) ((step & 0x00FF0000) >> 16);
NotifyVolt[2] = (uint8_t) ((step & 0x0000FF00) >> 8);
NotifyVolt[3] = (uint8_t) (step & 0x000000FF);
}
/* Transform setting CC into IUC