parent
5748ad601b
commit
19662a1939
|
@ -31,6 +31,9 @@
|
||||||
* afterburner PC program to upload JED fuse map, erase, read etc.
|
* afterburner PC program to upload JED fuse map, erase, read etc.
|
||||||
* simple programming circuit. See: https://github.com/ole00/afterburner
|
* simple programming circuit. See: https://github.com/ole00/afterburner
|
||||||
|
|
||||||
|
* 2024-02-02 Fixed: Command 'B9' (Calibration Offset = 0,25V) doesn't work
|
||||||
|
Note: Also requires elimination of a in the PC program afterburner.c
|
||||||
|
Added: 10.0V measurement in measureVppValues(()
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -2517,6 +2520,9 @@ static void measureVppValues(void) {
|
||||||
Serial.print(F("VPP: 9.0V : "));
|
Serial.print(F("VPP: 9.0V : "));
|
||||||
measureVpp(VPP_9V0);
|
measureVpp(VPP_9V0);
|
||||||
|
|
||||||
|
Serial.print(F("VPP: 10.0V : "));
|
||||||
|
measureVpp(VPP_10V0);
|
||||||
|
|
||||||
Serial.print(F("VPP: 12.0V : "));
|
Serial.print(F("VPP: 12.0V : "));
|
||||||
measureVpp(VPP_12V0);
|
measureVpp(VPP_12V0);
|
||||||
|
|
||||||
|
@ -2700,8 +2706,8 @@ void loop() {
|
||||||
// small differences in analog ref which is ~3.3 V derived from LDO.
|
// small differences in analog ref which is ~3.3 V derived from LDO.
|
||||||
case COMMAND_CALIBRATION_OFFSET: {
|
case COMMAND_CALIBRATION_OFFSET: {
|
||||||
int8_t offset = line[1] - '0';
|
int8_t offset = line[1] - '0';
|
||||||
if (offset >=0 && offset < 9) {
|
if (offset >=0 && offset <= 9) {
|
||||||
//0:-0.2V 1:-1.5V 2: -0.1V 3: -0.05V 4: 0V 5: 0.05V 6: 0.1V 7: 0.15V 8: 0.20V 9:0.25V
|
//0:-0.2V 1:-0.15V 2: -0.1V 3: -0.05V 4: 0V 5: 0.05V 6: 0.1V 7: 0.15V 8: 0.20V 9:0.25V
|
||||||
calOffset = (offset - 4) * 5;
|
calOffset = (offset - 4) * 5;
|
||||||
Serial.print(F("Using cal offset: "));
|
Serial.print(F("Using cal offset: "));
|
||||||
Serial.println(calOffset);
|
Serial.println(calOffset);
|
||||||
|
|
Loading…
Reference in New Issue