2 years, 5 months ago.

What pin name should I use for reading A11/ADC0_DM0?

In the Arduino Teensy framework, analog pin A11 can be read using the Arduino analogIn() function.

However, the ADC0_DM0 pin is not referenced in either targets/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/PeripheralPins.c::PinMap_ADC[] or targets/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/PinNames.h.

Does anyone know how I might access the A11 pin for using with an AnalogIn instance?

Any help would greatly appreciated!

Thanks, Christian

Question relating to:

The PJRC Teensy 3.1 operates at CPU frequency of 96MHz. The powerful ARM-M4 Freescale MK20DX256VLH7 MCU has 256 kB of flash memory, 64 kB of RAM memory. This platform is …

1 Answer

1 year, 11 months ago.

Sorry for delay, I've been 'away' for a while. Not all the functions of this platform were implemented, we focused on the main DIP pin functions. We considered fourteen Analogue In pins would be sufficient, also the CAN function has not been implemented. These extra ADC channels can be added by editing the Target CMSIS and HAL files to enable the extra ADC pins.