fixup! This is a stable version. 11/28 sell to NCKU with CC mode IV mode return Vin
This commit is contained in:
+6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user