Compare commits

...

18 Commits

Author SHA1 Message Date
Roy_01 0eae7257f3 [cali] new BOARD_59/BOARD_67/BOARD_68 calibration data 2025-04-24 15:11:05 +08:00
Roy_01 118f61c8bf [cali] new BOARD_60 calibration data 2025-04-18 13:20:11 +08:00
Roy_01 be49fe80c4 [cali] update BOARD_36 calibration data 2025-04-14 09:15:54 +08:00
Roy_01 94b0a701a9 [cali] update BOARD_25 calibration data 2025-04-14 09:14:55 +08:00
Roy_01 313891d241 [cali] new BOARD_57/BOARD_58 calibration data 2025-03-11 13:12:07 +08:00
Roy_01 852e920c09 [cali] update BOARD_54 calibration data 2025-02-24 17:34:42 +08:00
Roy_01 55645315af [cali] update BOARD_53 calibration data 2025-02-21 16:05:23 +08:00
Roy_01 fb4ff0805b [cali] new BOARD_56 calibration data 2025-01-07 16:37:26 +08:00
Roy_01 a9c98d9833 [cali] new BOARD_51/BOARD_52/BOARD_53/BOARD_54/BOARD_55 calibration data 2025-01-07 09:56:23 +08:00
Roy_01 3b6ea50ee6 [cali] new BOARD_50 calibration data. 2024-01-16 13:47:41 +08:00
Roy_01 5288394e8f [cali] update BOARD_48 calibration data. 2023-11-17 11:59:44 +08:00
Roy_01 1ab61280ef [cali] add BOARD_46/47/48/49 calibration data. 2023-11-08 09:21:31 +08:00
Roy_01 fadbe0eada [cali] update BOARD_34/42 calibration data. 2023-10-26 14:49:30 +08:00
Roy_01 065827f6af [cali] add BOARD_45 calibration data. 2023-10-26 13:37:58 +08:00
Roy_01 5ee3614c42 [cali] add BOARD_41 calibration data. 2023-10-25 16:56:51 +08:00
Roy_01 efd206104b [cali] add BOARD_42/43/44 calibration data. 2023-10-25 10:47:09 +08:00
Roy e1d3710526 Fix: turn on/off 10V when power on/off 2023-07-27 10:45:29 +08:00
Roy 8b7b515da9 Doc: new IDE setting image 2023-06-07 17:04:04 +08:00
23 changed files with 800 additions and 52 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

@@ -2422,35 +2422,35 @@ struct correction_ctx_t Correction = {
#ifdef BOARD_25
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6259,
.ADC_volt[0].offset = (-100906460),
.ADC_volt[0].coeff = 6260,
.ADC_volt[0].offset = (-100957891),
.ADC_volt[1].coeff = 215387,
.ADC_volt[1].offset = (-3477115000),
.ADC_volt[1].coeff = 215386,
.ADC_volt[1].offset = (-3476492317),
.ADC_volt[2].coeff = 6280117,
.ADC_volt[2].offset = (-101367770021),
.ADC_volt[2].coeff = 6279807,
.ADC_volt[2].offset = (-101340967681),
.ADC_current[0].coeff = 3142737,
.ADC_current[0].offset = (-50912916739),
.ADC_current[0].coeff = 3142460,
.ADC_current[0].offset = (-50912192452),
.ADC_current[1].coeff = 71830513,
.ADC_current[1].offset = (-1163727489761),
.ADC_current[1].coeff = 71837195,
.ADC_current[1].offset = (-1163787319819),
.ADC_current[2].coeff = 1459146639,
.ADC_current[2].offset = (-23637891932849),
.ADC_current[2].coeff = 1460537767,
.ADC_current[2].offset = (-23659677871793),
.ADC_current[3].coeff = 30737911805,
.ADC_current[3].offset = (-497956559680527),
.ADC_current[3].coeff = 30762505526,
.ADC_current[3].offset = (-498345971402450),
.Usercode2DAC[0].coeff = (-10538107),
.Usercode2DAC[0].offset = 581974515579,
.Usercode2DAC[0].coeff = (-10538397),
.Usercode2DAC[0].offset = 582025875620,
.Usercode2DAC[1].coeff = (-179241918),
.Usercode2DAC[1].offset = 4800217823823,
.Usercode2DAC[1].coeff = (-179277800),
.Usercode2DAC[1].offset = 4801154350004,
.ADC_Vout_volt[0].coeff = (-6252217),
.ADC_Vout_volt[0].offset = 100459702001,
.ADC_Vout_volt[0].coeff = (-6325469),
.ADC_Vout_volt[0].offset = 102027724160,
};
#endif
@@ -2715,14 +2715,14 @@ struct correction_ctx_t Correction = {
.ADC_current[3].coeff = 30861536514,
.ADC_current[3].offset = (-503541385864864),
.Usercode2DAC[0].coeff = (-10528669),
.Usercode2DAC[0].offset = 582397433169,
.Usercode2DAC[0].coeff = (-10532286),
.Usercode2DAC[0].offset = 582670992328,
.Usercode2DAC[1].coeff = (-178489372),
.Usercode2DAC[1].offset = 4782067563825,
.Usercode2DAC[1].coeff = (-178528006),
.Usercode2DAC[1].offset = 4783212528958,
.ADC_Vout_volt[0].coeff = (-6255030),
.ADC_Vout_volt[0].offset = 102118159563,
.ADC_Vout_volt[0].coeff = (-6255705),
.ADC_Vout_volt[0].offset = 102155152013,
};
#endif
@@ -2762,35 +2762,35 @@ struct correction_ctx_t Correction = {
#ifdef BOARD_36
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6281,
.ADC_volt[0].offset = (-102123495),
.ADC_volt[0].coeff = 6282,
.ADC_volt[0].offset = (-102174326),
.ADC_volt[1].coeff = 216252,
.ADC_volt[1].offset = (-3515703990),
.ADC_volt[1].coeff = 216226,
.ADC_volt[1].offset = (-3515647137),
.ADC_volt[2].coeff = 6277260,
.ADC_volt[2].offset = (-102028401662),
.ADC_volt[2].coeff = 6278242,
.ADC_volt[2].offset = (-102053165894),
.ADC_current[0].coeff = 3152607,
.ADC_current[0].offset = (-51487356975),
.ADC_current[0].coeff = 3153711,
.ADC_current[0].offset = (-51509870486),
.ADC_current[1].coeff = 72284272,
.ADC_current[1].offset = (-1180436017406),
.ADC_current[1].coeff = 72289690,
.ADC_current[1].offset = (-1180626943347),
.ADC_current[2].coeff = 1467427835,
.ADC_current[2].offset = (-23962904666231),
.ADC_current[2].coeff = 1468859610,
.ADC_current[2].offset = (-23987730035041),
.ADC_current[3].coeff = 30929911579,
.ADC_current[3].offset = (-505100448244360),
.ADC_current[3].coeff = 30931305302,
.ADC_current[3].offset = (-505165075127565),
.Usercode2DAC[0].coeff = (-10442292),
.Usercode2DAC[0].offset = 580714146994,
.Usercode2DAC[0].coeff = (-10442394),
.Usercode2DAC[0].offset = 580810392488,
.Usercode2DAC[1].coeff = (-177976355),
.Usercode2DAC[1].offset = 4769711791877,
.Usercode2DAC[1].coeff = (-177966453),
.Usercode2DAC[1].offset = 4769568538182,
.ADC_Vout_volt[0].coeff = (-6256522),
.ADC_Vout_volt[0].offset = 102072185212,
.ADC_Vout_volt[0].coeff = (-6256949),
.ADC_Vout_volt[0].offset = 102082100851,
};
#endif
@@ -2930,6 +2930,753 @@ struct correction_ctx_t Correction = {
};
#endif
#ifdef BOARD_41
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6244,
.ADC_volt[0].offset = (-102253576),
.ADC_volt[1].coeff = 214018,
.ADC_volt[1].offset = (-3505915766),
.ADC_volt[2].coeff = 6254121,
.ADC_volt[2].offset = (-102420929556),
.ADC_current[0].coeff = 3139582,
.ADC_current[0].offset = (-51133701004),
.ADC_current[1].coeff = 72063506,
.ADC_current[1].offset = (-1173784726783),
.ADC_current[2].coeff = 1461108791,
.ADC_current[2].offset = (-23796873780370),
.ADC_current[3].coeff = 30855626220,
.ADC_current[3].offset = (-502598227833432),
.Usercode2DAC[0].coeff = (-10532936),
.Usercode2DAC[0].offset = 582615319869,
.Usercode2DAC[1].coeff = (-179138726),
.Usercode2DAC[1].offset = 4798382974559,
.ADC_Vout_volt[0].coeff = (-6256961),
.ADC_Vout_volt[0].offset = 101325733855,
};
#endif
#ifdef BOARD_42
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6278,
.ADC_volt[0].offset = (-102207172),
.ADC_volt[1].coeff = 215743,
.ADC_volt[1].offset = (-3514456556),
.ADC_volt[2].coeff = 6273430,
.ADC_volt[2].offset = (-102159584835),
.ADC_current[0].coeff = 3113388,
.ADC_current[0].offset = (-50507647663),
.ADC_current[1].coeff = 71558779,
.ADC_current[1].offset = (-1160965339212),
.ADC_current[2].coeff = 1451088806,
.ADC_current[2].offset = (-23540666487762),
.ADC_current[3].coeff = 30558589208,
.ADC_current[3].offset = (-495775802637916),
.Usercode2DAC[0].coeff = (-10499141),
.Usercode2DAC[0].offset = 578751066727,
.Usercode2DAC[1].coeff = (-178353892),
.Usercode2DAC[1].offset = 4775750225422,
.ADC_Vout_volt[0].coeff = (-6238607),
.ADC_Vout_volt[0].offset = 101117192079,
};
#endif
#ifdef BOARD_43
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6250,
.ADC_volt[0].offset = (-102291513),
.ADC_volt[1].coeff = 214672,
.ADC_volt[1].offset = (-3514057308),
.ADC_volt[2].coeff = 6245636,
.ADC_volt[2].offset = (-102209309248),
.ADC_current[0].coeff = 3113096,
.ADC_current[0].offset = (-50762285039),
.ADC_current[1].coeff = 71563178,
.ADC_current[1].offset = (-1166968626168),
.ADC_current[2].coeff = 1448110865,
.ADC_current[2].offset = (-23612286687822),
.ADC_current[3].coeff = 30568818998,
.ADC_current[3].offset = (-498463261308120),
.Usercode2DAC[0].coeff = (-10566863),
.Usercode2DAC[0].offset = 585315654903,
.Usercode2DAC[1].coeff = (-178663759),
.Usercode2DAC[1].offset = 4788333822191,
.ADC_Vout_volt[0].coeff = (-6253999),
.ADC_Vout_volt[0].offset = 101955656639,
};
#endif
#ifdef BOARD_44
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6267,
.ADC_volt[0].offset = (-101794237),
.ADC_volt[1].coeff = 215098,
.ADC_volt[1].offset = (-3494829392),
.ADC_volt[2].coeff = 6274550,
.ADC_volt[2].offset = (-101921431439),
.ADC_current[0].coeff = 3125636,
.ADC_current[0].offset = (-50981674664),
.ADC_current[1].coeff = 71870062,
.ADC_current[1].offset = (-1172278019614),
.ADC_current[2].coeff = 1456818793,
.ADC_current[2].offset = (-23760429701922),
.ADC_current[3].coeff = 30708069449,
.ADC_current[3].offset = (-500876235284472),
.Usercode2DAC[0].coeff = (-10519051),
.Usercode2DAC[0].offset = 582882656679,
.Usercode2DAC[1].coeff = (-177807426),
.Usercode2DAC[1].offset = 4765733359862,
.ADC_Vout_volt[0].coeff = (-6267014),
.ADC_Vout_volt[0].offset = 101728349335,
};
#endif
#ifdef BOARD_45
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6262,
.ADC_volt[0].offset = (-102336148),
.ADC_volt[1].coeff = 214912,
.ADC_volt[1].offset = (-3514677864),
.ADC_volt[2].coeff = 6274518,
.ADC_volt[2].offset = (-102590618147),
.ADC_current[0].coeff = 3120609,
.ADC_current[0].offset = (-50861857629),
.ADC_current[1].coeff = 71546911,
.ADC_current[1].offset = (-1166244278462),
.ADC_current[2].coeff = 1453025486,
.ADC_current[2].offset = (-23682595476549),
.ADC_current[3].coeff = 30557358936,
.ADC_current[3].offset = (-498076863628904),
.Usercode2DAC[0].coeff = (-10522059),
.Usercode2DAC[0].offset = 580356870281,
.Usercode2DAC[1].coeff = (-178003119),
.Usercode2DAC[1].offset = 4768017674061,
.ADC_Vout_volt[0].coeff = (-6239102),
.ADC_Vout_volt[0].offset = 102072946150,
};
#endif
#ifdef BOARD_46
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6240,
.ADC_volt[0].offset = (-101429565),
.ADC_volt[1].coeff = 214648,
.ADC_volt[1].offset = (-3489358745),
.ADC_volt[2].coeff = 6233725,
.ADC_volt[2].offset = (-101313366691),
.ADC_current[0].coeff = 3134885,
.ADC_current[0].offset = (-51032344188),
.ADC_current[1].coeff = 72081423,
.ADC_current[1].offset = (-1173482266477),
.ADC_current[2].coeff = 1458718359,
.ADC_current[2].offset = (-23746778057242),
.ADC_current[3].coeff = 30799582693,
.ADC_current[3].offset = (-501411421709225),
.Usercode2DAC[0].coeff = (-10556716),
.Usercode2DAC[0].offset = 583191573940,
.Usercode2DAC[1].coeff = (-178131554),
.Usercode2DAC[1].offset = 4773203475326,
.ADC_Vout_volt[0].coeff = (-6241687),
.ADC_Vout_volt[0].offset = 101603926109,
};
#endif
#ifdef BOARD_47
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6246,
.ADC_volt[0].offset = (-101394289),
.ADC_volt[1].coeff = 214235,
.ADC_volt[1].offset = (-3479270505),
.ADC_volt[2].coeff = 6246151,
.ADC_volt[2].offset = (-101418346461),
.ADC_current[0].coeff = 3122413,
.ADC_current[0].offset = (-50638123879),
.ADC_current[1].coeff = 71904884,
.ADC_current[1].offset = (-1166182353634),
.ADC_current[2].coeff = 1457383174,
.ADC_current[2].offset = (-23634671156953),
.ADC_current[3].coeff = 30733403556,
.ADC_current[3].offset = (-498456288132256),
.Usercode2DAC[0].coeff = (-10543828),
.Usercode2DAC[0].offset = 582188036070,
.Usercode2DAC[1].coeff = (-177847864),
.Usercode2DAC[1].offset = 4765423296316,
.ADC_Vout_volt[0].coeff = (-6263029),
.ADC_Vout_volt[0].offset = 101373476197,
};
#endif
#ifdef BOARD_48
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6256,
.ADC_volt[0].offset = (-102025693),
.ADC_volt[1].coeff = 215502,
.ADC_volt[1].offset = (-3514964112),
.ADC_volt[2].coeff = 6279573,
.ADC_volt[2].offset = (-102398647768),
.ADC_current[0].coeff = 3126052,
.ADC_current[0].offset = (-51036853594),
.ADC_current[1].coeff = 71858165,
.ADC_current[1].offset = (-1173243572914),
.ADC_current[2].coeff = 1457799767,
.ADC_current[2].offset = (-23800238872475),
.ADC_current[3].coeff = 30781552936,
.ADC_current[3].offset = (-502562350610130),
.Usercode2DAC[0].coeff = (-10520902),
.Usercode2DAC[0].offset = 582105276838,
.Usercode2DAC[1].coeff = (-178616121),
.Usercode2DAC[1].offset = 4785133164166,
.ADC_Vout_volt[0].coeff = (-6196468),
.ADC_Vout_volt[0].offset = 101323723645,
};
#endif
#ifdef BOARD_49
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6229,
.ADC_volt[0].offset = (-101131838),
.ADC_volt[1].coeff = 214279,
.ADC_volt[1].offset = (-3476600734),
.ADC_volt[2].coeff = 6239407,
.ADC_volt[2].offset = (-101205739459),
.ADC_current[0].coeff = 3139647,
.ADC_current[0].offset = (-51021027658),
.ADC_current[1].coeff = 71852207,
.ADC_current[1].offset = (-1167731595516),
.ADC_current[2].coeff = 1460638308,
.ADC_current[2].offset = (-23737015073754),
.ADC_current[3].coeff = 30683667806,
.ADC_current[3].offset = (-498642016708658),
.Usercode2DAC[0].coeff = (-10533740),
.Usercode2DAC[0].offset = 582156656300,
.Usercode2DAC[1].coeff = (-177851244),
.Usercode2DAC[1].offset = 4765718213782,
.ADC_Vout_volt[0].coeff = (-6256139),
.ADC_Vout_volt[0].offset = 101469741241,
};
#endif
#ifdef BOARD_50
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6255,
.ADC_volt[0].offset = (-102006975),
.ADC_volt[1].coeff = 213749,
.ADC_volt[1].offset = (-3485511071),
.ADC_volt[2].coeff = 6243279,
.ADC_volt[2].offset = (-101778902452),
.ADC_current[0].coeff = 3121428,
.ADC_current[0].offset = (-50928971575),
.ADC_current[1].coeff = 71691861,
.ADC_current[1].offset = (-1169757063049),
.ADC_current[2].coeff = 1454992673,
.ADC_current[2].offset = (-23738737332342),
.ADC_current[3].coeff = 30685141165,
.ADC_current[3].offset = (-500673286090517),
.Usercode2DAC[0].coeff = (-10525870),
.Usercode2DAC[0].offset = 582549889797,
.Usercode2DAC[1].coeff = (-178498513),
.Usercode2DAC[1].offset = 4782490930218,
.ADC_Vout_volt[0].coeff = (-6283517),
.ADC_Vout_volt[0].offset = 102382727839,
};
#endif
#ifdef BOARD_51
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6251,
.ADC_volt[0].offset = (-101960935),
.ADC_volt[1].coeff = 214936,
.ADC_volt[1].offset = (-3505935045),
.ADC_volt[2].coeff = 6262468,
.ADC_volt[2].offset = (-102129164059),
.ADC_current[0].coeff = 3121460,
.ADC_current[0].offset = (-50935052565),
.ADC_current[1].coeff = 71635195,
.ADC_current[1].offset = (-1168830601385),
.ADC_current[2].coeff = 1456733267,
.ADC_current[2].offset = (-23766281170260),
.ADC_current[3].coeff = 30640138912,
.ADC_current[3].offset = (-499891226400548),
.Usercode2DAC[0].coeff = (-10526231),
.Usercode2DAC[0].offset = 583694130664,
.Usercode2DAC[1].coeff = (-178354012),
.Usercode2DAC[1].offset = 4780035150045,
.ADC_Vout_volt[0].coeff = (-6228387),
.ADC_Vout_volt[0].offset = 101924442684,
};
#endif
#ifdef BOARD_52
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6272,
.ADC_volt[0].offset = (-101831195),
.ADC_volt[1].coeff = 213808,
.ADC_volt[1].offset = (-3475568196),
.ADC_volt[2].coeff = 6275540,
.ADC_volt[2].offset = (-101992313043),
.ADC_current[0].coeff = 3133488,
.ADC_current[0].offset = (-50950345999),
.ADC_current[1].coeff = 72027117,
.ADC_current[1].offset = (-1171192555348),
.ADC_current[2].coeff = 1465008068,
.ADC_current[2].offset = (-23818853611897),
.ADC_current[3].coeff = 30658111163,
.ADC_current[3].offset = (-498483180279902),
.Usercode2DAC[0].coeff = (-10454362),
.Usercode2DAC[0].offset = 579544063384,
.Usercode2DAC[1].coeff = (-178095862),
.Usercode2DAC[1].offset = 4771226001608,
.ADC_Vout_volt[0].coeff = (-6271204),
.ADC_Vout_volt[0].offset = 102174888979,
};
#endif
#ifdef BOARD_53
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6260,
.ADC_volt[0].offset = (-101680915),
.ADC_volt[1].coeff = 215516,
.ADC_volt[1].offset = (-3504960347),
.ADC_volt[2].coeff = 6288702,
.ADC_volt[2].offset = (-102243864668),
.ADC_current[0].coeff = 3122830,
.ADC_current[0].offset = (-50814454303),
.ADC_current[1].coeff = 71832039,
.ADC_current[1].offset = (-1168898280211),
.ADC_current[2].coeff = 1460451294,
.ADC_current[2].offset = (-23763389469388),
.ADC_current[3].coeff = 30812261739,
.ADC_current[3].offset = (-501401771169778),
.Usercode2DAC[0].coeff = (-10542264),
.Usercode2DAC[0].offset = 582454846268,
.Usercode2DAC[1].coeff = (-177791943),
.Usercode2DAC[1].offset = 4764329356601,
.ADC_Vout_volt[0].coeff = (-6218915),
.ADC_Vout_volt[0].offset = 101458283411,
};
#endif
#ifdef BOARD_54
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6269,
.ADC_volt[0].offset = (-101868178),
.ADC_volt[1].coeff = 215446,
.ADC_volt[1].offset = (-3500975736),
.ADC_volt[2].coeff = 6277771,
.ADC_volt[2].offset = (-101986984744),
.ADC_current[0].coeff = 3119557,
.ADC_current[0].offset = (-50818999485),
.ADC_current[1].coeff = 71550710,
.ADC_current[1].offset = (-1165687181863),
.ADC_current[2].coeff = 1456323355,
.ADC_current[2].offset = (-23724302229345),
.ADC_current[3].coeff = 30598653264,
.ADC_current[3].offset = (-498491829497316),
.Usercode2DAC[0].coeff = (-10512682),
.Usercode2DAC[0].offset = 583412047635,
.Usercode2DAC[1].coeff = (-178571426),
.Usercode2DAC[1].offset = 4785528458839,
.ADC_Vout_volt[0].coeff = (-6236414),
.ADC_Vout_volt[0].offset = 102066576938,
};
#endif
#ifdef BOARD_55
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6254,
.ADC_volt[0].offset = (-101524465),
.ADC_volt[1].coeff = 214850,
.ADC_volt[1].offset = (-3489950036),
.ADC_volt[2].coeff = 6260964,
.ADC_volt[2].offset = (-101674743929),
.ADC_current[0].coeff = 3117578,
.ADC_current[0].offset = (-50600181193),
.ADC_current[1].coeff = 71721130,
.ADC_current[1].offset = (-1164162525390),
.ADC_current[2].coeff = 1456703002,
.ADC_current[2].offset = (-23641490814884),
.ADC_current[3].coeff = 30556765714,
.ADC_current[3].offset = (-495973078681743),
.Usercode2DAC[0].coeff = (-10529155),
.Usercode2DAC[0].offset = 582405755740,
.Usercode2DAC[1].coeff = (-179346345),
.Usercode2DAC[1].offset = 4803477756023,
.ADC_Vout_volt[0].coeff = (-6226657),
.ADC_Vout_volt[0].offset = 101637514835,
};
#endif
#ifdef BOARD_56
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6254,
.ADC_volt[0].offset = (-101729326),
.ADC_volt[1].coeff = 215094,
.ADC_volt[1].offset = (-3501744100),
.ADC_volt[2].coeff = 6249250,
.ADC_volt[2].offset = (-101711035856),
.ADC_current[0].coeff = 3124160,
.ADC_current[0].offset = (-50824321667),
.ADC_current[1].coeff = 71988300,
.ADC_current[1].offset = (-1171164757527),
.ADC_current[2].coeff = 1460324809,
.ADC_current[2].offset = (-23755772925943),
.ADC_current[3].coeff = 30695995965,
.ADC_current[3].offset = (-499390101557938),
.Usercode2DAC[0].coeff = (-10569597),
.Usercode2DAC[0].offset = 584416876739,
.Usercode2DAC[1].coeff = (-179648302),
.Usercode2DAC[1].offset = 4812028140737,
.ADC_Vout_volt[0].coeff = (-6202832),
.ADC_Vout_volt[0].offset = 101437876050,
};
#endif
#ifdef BOARD_57
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6249,
.ADC_volt[0].offset = (-101237930),
.ADC_volt[1].coeff = 214616,
.ADC_volt[1].offset = (-3479478973),
.ADC_volt[2].coeff = 6252744,
.ADC_volt[2].offset = (-101350321540),
.ADC_current[0].coeff = 3140043,
.ADC_current[0].offset = (-51151819851),
.ADC_current[1].coeff = 72130028,
.ADC_current[1].offset = (-1175060544401),
.ADC_current[2].coeff = 1463398765,
.ADC_current[2].offset = (-23837925086707),
.ADC_current[3].coeff = 30779198206,
.ADC_current[3].offset = (-501414725280058),
.Usercode2DAC[0].coeff = (-10523480),
.Usercode2DAC[0].offset = 581716449481,
.Usercode2DAC[1].coeff = (-177487533),
.Usercode2DAC[1].offset = 4756448091727,
.ADC_Vout_volt[0].coeff = (-6230015),
.ADC_Vout_volt[0].offset = 101588293861,
};
#endif
#ifdef BOARD_58
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6255,
.ADC_volt[0].offset = (-102188872),
.ADC_volt[1].coeff = 214074,
.ADC_volt[1].offset = (-3498355515),
.ADC_volt[2].coeff = 6262559,
.ADC_volt[2].offset = (-102313746105),
.ADC_current[0].coeff = 3125763,
.ADC_current[0].offset = (-51055926776),
.ADC_current[1].coeff = 71708521,
.ADC_current[1].offset = (-1171358697423),
.ADC_current[2].coeff = 1459137856,
.ADC_current[2].offset = (-23833483382561),
.ADC_current[3].coeff = 30672459071,
.ADC_current[3].offset = (-500959273333771),
.Usercode2DAC[0].coeff = (-10586971),
.Usercode2DAC[0].offset = 584798197699,
.Usercode2DAC[1].coeff = (-178691735),
.Usercode2DAC[1].offset = 4788051302894,
.ADC_Vout_volt[0].coeff = (-6192653),
.ADC_Vout_volt[0].offset = 101261395976,
};
#endif
#ifdef BOARD_60
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6266,
.ADC_volt[0].offset = (-101870817),
.ADC_volt[1].coeff = 214854,
.ADC_volt[1].offset = (-3494914850),
.ADC_volt[2].coeff = 6280380,
.ADC_volt[2].offset = (-102188117388),
.ADC_current[0].coeff = 3122270,
.ADC_current[0].offset = (-50754176718),
.ADC_current[1].coeff = 71699910,
.ADC_current[1].offset = (-1165923595546),
.ADC_current[2].coeff = 1457727319,
.ADC_current[2].offset = (-23692056094716),
.ADC_current[3].coeff = 30668409685,
.ADC_current[3].offset = (-498481106198561),
.Usercode2DAC[0].coeff = (-10485303),
.Usercode2DAC[0].offset = 581237178986,
.Usercode2DAC[1].coeff = (-177699486),
.Usercode2DAC[1].offset = 4762219883623,
.ADC_Vout_volt[0].coeff = (-6256653),
.ADC_Vout_volt[0].offset = 101226993012,
};
#endif
#ifdef BOARD_59
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6228,
.ADC_volt[0].offset = (-100798734),
.ADC_volt[1].coeff = 213753,
.ADC_volt[1].offset = (-3460340769),
.ADC_volt[2].coeff = 6234764,
.ADC_volt[2].offset = (-100913473267),
.ADC_current[0].coeff = 3142029,
.ADC_current[0].offset = (-51040840678),
.ADC_current[1].coeff = 71976723,
.ADC_current[1].offset = (-1169510264723),
.ADC_current[2].coeff = 1467468473,
.ADC_current[2].offset = (-23835414108549),
.ADC_current[3].coeff = 30871513567,
.ADC_current[3].offset = (-501497971957709),
.Usercode2DAC[0].coeff = (-10555092),
.Usercode2DAC[0].offset = 583256457039,
.Usercode2DAC[1].coeff = (-178180960),
.Usercode2DAC[1].offset = 4774534645010,
.ADC_Vout_volt[0].coeff = (-6276374),
.ADC_Vout_volt[0].offset = 101616136035,
};
#endif
#ifdef BOARD_67
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6267,
.ADC_volt[0].offset = (-101761174),
.ADC_volt[1].coeff = 215258,
.ADC_volt[1].offset = (-3496876492),
.ADC_volt[2].coeff = 6276060,
.ADC_volt[2].offset = (-101929552071),
.ADC_current[0].coeff = 3127622,
.ADC_current[0].offset = (-50968588668),
.ADC_current[1].coeff = 71915493,
.ADC_current[1].offset = (-1172118888086),
.ADC_current[2].coeff = 1458878520,
.ADC_current[2].offset = (-23775564791013),
.ADC_current[3].coeff = 30789089239,
.ADC_current[3].offset = (-501800853035570),
.Usercode2DAC[0].coeff = (-10559729),
.Usercode2DAC[0].offset = 583786243268,
.Usercode2DAC[1].coeff = (-178412947),
.Usercode2DAC[1].offset = 4780773376298,
.ADC_Vout_volt[0].coeff = (-6247336),
.ADC_Vout_volt[0].offset = 101674349615,
};
#endif
#ifdef BOARD_68
struct correction_ctx_t Correction = {
.ADC_volt[0].coeff = 6264,
.ADC_volt[0].offset = (-102302392),
.ADC_volt[1].coeff = 215240,
.ADC_volt[1].offset = (-3517532925),
.ADC_volt[2].coeff = 6267901,
.ADC_volt[2].offset = (-102410521183),
.ADC_current[0].coeff = 3145338,
.ADC_current[0].offset = (-51160938868),
.ADC_current[1].coeff = 72008376,
.ADC_current[1].offset = (-1171304264968),
.ADC_current[2].coeff = 1464479228,
.ADC_current[2].offset = (-23819759067267),
.ADC_current[3].coeff = 30817716253,
.ADC_current[3].offset = (-501260454481723),
.Usercode2DAC[0].coeff = (-10503526),
.Usercode2DAC[0].offset = 581797877976,
.Usercode2DAC[1].coeff = (-178855539),
.Usercode2DAC[1].offset = 4791242550879,
.ADC_Vout_volt[0].coeff = (-6225832),
.ADC_Vout_volt[0].offset = 101246482467,
};
#endif
int32_t DecodeADCValue(uint8_t adc_gain, uint8_t adc_channel, uint16_t adc_rxbuf);
uint16_t Usercode_Correction_to_DAC(uint8_t dac_gain, uint16_t usercode);
@@ -3,10 +3,10 @@
#define VERSION_DATE
#define VERSION_DATE_YEAR 23
#define VERSION_DATE_MONTH 3
#define VERSION_DATE_DAY 7
#define VERSION_DATE_HOUR 17
#define VERSION_DATE_MINUTE 41
#define VERSION_DATE_MONTH 7
#define VERSION_DATE_DAY 27
#define VERSION_DATE_HOUR 10
#define VERSION_DATE_MINUTE 45
// this is NOT the version hash !!
// it's the last version hash
@@ -619,9 +619,9 @@ static bool power_on(uint32_t delta_time)
keyTimer = keyTimer + t;
if (keyTimer >= 10000) {
latch_single_ctrl(E_LATCH_5V_ENABLE, 1);
latch_single_ctrl(E_LATCH_10V_ENABLE, 1);
latch_single_ctrl(E_LATCH_5V_ENABLE, 1);
CPUdelay_us(320); // need delay 320us to stablize power
ModeLED(BT_WAIT);
//AD5940_Initialize();
@@ -668,6 +668,7 @@ static void key_manage(uint32_t delta_time)
keyTimer = keyTimer + t;
if (keyTimer >= 30000){
latch_single_ctrl(E_LATCH_10V_ENABLE, 0);
latch_single_ctrl(E_LATCH_5V_ENABLE, 0);
} else if (keyTimer >= 10000 && !byPass1sec) {