Teensy Internal Reference Voltage Question

Not open for further replies.
For the project that I'm working on I need the teensy to be able to read its battery voltage and shut down before it gets too low. I am using teensyduino. According to the arduino website, setting the new reference voltage is as simple as typing analogReference(INTERNAL) or analogReference(INTERNAL1V1) in the setup loop. Both of them worked fine for me when I tried them. My question is, does the teensy also have a 2.56V internal reference? I noticed on the pjrc website that it talks about using 2.56V. https://www.pjrc.com/teensy/adc.html When I try compiling with analogReference(INTERNAL2V56) I get an error. Any thoughts or advice would be appreciated! :)
I believe the Teensy LC did. Why don't you just use a voltage divider to bring your battery down to 1.2v?
Teensy 2.0 and Teensy++ 2.0 have a 2.56V internal reference.

On Teensy 3.0, 3.1 and 3.2, the internal reference is 1.2V.

Teensy LC does not have any internal reference voltage.
Sorry to be obtuse, but just to be sure, the "Reference Voltage" is in addition to the 3.3 volts the processor is running on, correct? In other words I think one can put a pot across +3.3v output of the Teensy 3.2 and 0V, with the wiper on any analog in, and get the full range of the pot without damaging the processor, or go to the "internal Reference" to use the 1.2V reference.
Your assumptions are basically correct WRT connecting a pot between AGND and 3.3V, that is a pattern that I have been using to validate our analog subsystem at work. We connect the wiper to an analog input (DP0) through a small resistor with a cap to analog ground.

If you wanted to use the internal 1.2V reference make sure your circuit cannot exceed 1.2V.

The schematics show the rest: Teensy schematic page

Teensy background:

In all Teensy 3.x (3.0, 3.1, 3.2, 3.5, 3.6), the Kinetis processor's VREFL is connected directly to to analog ground (VSSA) which itself is connected to signal ground through a ferrite bead to limit high frequency noise. VREFH is connected through a 470 Ohm resistor to the analog supply (VDDA) which connects through a ferrite bead to the 3.3V supply, with a 0.1uF capacitor to analog ground.

ADC background:

The internal 1.2V reference is available as an ADC configuration option (REFSEL in ADCx_SC2), and using it requires the VREFOUT pin to be connected through a 0.1uF load capacitor to analog ground, which is part of Teensy 3.x designs.
Not open for further replies.