board C64C calibration data

This commit is contained in:
yichin
2020-02-17 12:33:01 +08:00
parent c7d531f0a5
commit 64effd5a02
@@ -29,7 +29,7 @@
*/
#define BOARD_ANGUS
#define BOARD_C64C
typedef struct _formula{
@@ -1039,6 +1039,36 @@ struct _correction{
};
#endif
#ifdef BOARD_C64C
{
.ADC_volt.coeff = (-6260844),
.ADC_volt.offset = 101746271485,
.ADC_current[0].coeff = 31234762,
.ADC_current[0].offset = -509025107922,
.ADC_current[1].coeff = 660737512,
.ADC_current[1].offset = -10739681096143,
.ADC_current[2].coeff = 31446881444,
.ADC_current[2].offset = -511179540163754,
.DAC2RealV.coeff = (-19007867),
.DAC2RealV.offset = 646316924837,
.Usercode2DAC.coeff = (-10547083),
.Usercode2DAC.offset = 562398595911,
.Gain0Boundary[0] = 0x5ECD,
.Gain0Boundary[1] = 0x5F0D,
.Gain1Boundary[0] = 0x5900,
.Gain1Boundary[1] = 0x64DD
};
#endif
// this function turn ADC measure value (0xXXXX) into real voltage
// unit should be nV