*
@@ -178,7 +178,7 @@
* | 2 |
*
*
- * | XCLK 2 |
+ * XCK 2 |
* CLOCK |
* 3 |
*
@@ -241,7 +241,8 @@
*
* | VTARGET_ADC_CHANNEL |
* Makefile CDEFS |
- * ADC channel number (on supported AVRs) to use for VTARGET level detection, if NO_VTARGET_DETECT is not defined. |
+ * ADC channel number (on supported AVRs) to use for VTARGET level detection, if NO_VTARGET_DETECT is not defined.
+ * Ignored when compiled for targets lacking an ADC. |
*
*
* | ENABLE_ISP_PROTOCOL |
@@ -257,9 +258,25 @@
* NO_VTARGET_DETECT |
* Makefile CDEFS |
* Define to disable VTARGET sampling and reporting on AVR models with an ADC converter. This will cause the programmer
- * to report a fixed 5V target voltage to the host regardless of the real target voltage. |
+ * to report a fixed 5V target voltage to the host regardless of the real target voltage. Ignored when compiled for
+ * targets lacking an ADC.
*
*
+ * | VTARGET_REF_VOLTS |
+ * Makefile CDEFS |
+ * Indicates the programmer AVR's AVCC reference voltage when measuring the target's supply voltage. Note that the supply
+ * voltage should never exceed the reference voltage on the programmer AVR without some form of protection to prevent damage
+ * to the ADC. Ignored when compiled for targets lacking an ADC, or when NO_VTARGET_DETECT is defined. |
+ *
+ *
+ * | VTARGET_SCALE_FACTOR |
+ * Makefile CDEFS |
+ * Indicates the target's supply voltage scale factor when applied to the ADC. A simple resistive divider can be used on the
+ * ADC pin for measuring the target's supply voltage, so that voltages above the programmer AVR's AVCC reference voltage can be
+ * measured. This should be the reciprocal of the division performed - e.g. if the VTARGET voltage is halved, this should be set
+ * to 2. Ignored when compiled for targets lacking an ADC, or when NO_VTARGET_DETECT is defined. |
+ *
+ *
* | LIBUSB_DRIVER_COMPAT |
* Makefile CDEFS |
* Define to switch to a non-standard endpoint scheme, breaking compatibility with AVRStudio under Windows but making
|