Skip to content

Commit e7bf1ad

Browse files
author
SimonePDA
authored
Merge pull request #269 from per1234/analogReference-sam-samd
Document supported analogReference values for SAMD and SAM
2 parents 82770c7 + bd77a5f commit e7bf1ad

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

Language/Functions/Analog IO/analogReference.adoc

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,27 @@ subCategories: [ "Analog I/O" ]
1919
=== Description
2020
Configures the reference voltage used for analog input (i.e. the value used as the top of the input range). The options are:
2121

22+
Arduino AVR Boards (Uno, Mega, etc.)
23+
2224
* DEFAULT: the default analog reference of 5 volts (on 5V Arduino boards) or 3.3 volts (on 3.3V Arduino boards)
2325
* INTERNAL: an built-in reference, equal to 1.1 volts on the ATmega168 or ATmega328P and 2.56 volts on the ATmega8 (not available on the Arduino Mega)
2426
* INTERNAL1V1: a built-in 1.1V reference (Arduino Mega only)
2527
* INTERNAL2V56: a built-in 2.56V reference (Arduino Mega only)
2628
* EXTERNAL: the voltage applied to the AREF pin (0 to 5V only) is used as the reference.
29+
30+
Arduino SAMD Boards (Zero, etc.)
31+
32+
* AR_DEFAULT: the default analog reference of 3.3V
33+
* AR_INTERNAL: a built-in 2.23V reference
34+
* AR_INTERNAL1V0: a built-in 1.0V reference
35+
* AR_INTERNAL1V65: a built-in 1.65V reference
36+
* AR_INTERNAL2V23: a built-in 2.23V reference
37+
* AR_EXTERNAL: the voltage applied to the AREF pin is used as the reference
38+
39+
Arduino SAM Boards (Due)
40+
41+
* AR_DEFAULT: the default analog reference of 3.3V. This is the only supported option for the Due.
42+
2743
[%hardbreaks]
2844

2945

@@ -34,7 +50,7 @@ Configures the reference voltage used for analog input (i.e. the value used as t
3450

3551
[float]
3652
=== Parameters
37-
`type`: which type of reference to use (DEFAULT, INTERNAL, INTERNAL1V1, INTERNAL2V56, or EXTERNAL).
53+
`type`: which type of reference to use (see list of options in the description).
3854

3955
[float]
4056
=== Returns

0 commit comments

Comments
 (0)