ADC
8.0
Analog to Digital Conversor library for the Teensy LC microprocessor
|
Board-dependent settings. More...
Board-dependent settings.
|
strong |
ADC conversion speed. Common set of options to select the ADC clock speed F_ADCK, which depends on ADC_F_BUS, except for the ADACK_X_Y options that are independent. This selection affects the sampling speed too. Note: the F_ADCK speed is not equal to the conversion speed; any measurement takes several F_ADCK cycles to complete including the sampling and conversion steps.
Enumerator | |
---|---|
VERY_LOW_SPEED | is guaranteed to be the lowest possible speed within specs for resolutions less than 16 bits. |
LOW_SPEED | is guaranteed to be the lowest possible speed within specs for all resolutions. |
MED_SPEED | is always >= LOW_SPEED and <= HIGH_SPEED. |
HIGH_SPEED_16BITS | is guaranteed to be the highest possible speed within specs for all resolutions. |
HIGH_SPEED | is guaranteed to be the highest possible speed within specs for resolutions less than 16 bits. |
VERY_HIGH_SPEED | may be out of specs |
ADACK_2_4 | 2.4 MHz asynchronous ADC clock (independent of the global clocks F_CPU or F_BUS) |
ADACK_4_0 | 4.0 MHz asynchronous ADC clock (independent of the global clocks F_CPU or F_BUS) |
ADACK_5_2 | 5.2 MHz asynchronous ADC clock (independent of the global clocks F_CPU or F_BUS) |
ADACK_6_2 | 6.2 MHz asynchronous ADC clock (independent of the global clocks F_CPU or F_BUS) |
|
strong |
Other ADC sources to measure, such as the temperature sensor.
Enumerator | |
---|---|
TEMP_SENSOR | Temperature sensor. |
BANDGAP | BANDGAP |
VREFH | High VREF |
VREFL | Low VREF. |
|
strong |
Voltage reference for the ADC.
Enumerator | |
---|---|
REF_3V3 | 3.3 volts |
REF_EXT | External VREF |
|
strong |
ADC sampling speed. It selects how many ADCK clock cycles to add.