[ teensy3, adc, muxsel ]

Status
Not open for further replies.

texane

Member
Hi,

I downloaded the latest version of the teensyduino program and looked at
the analog.c implementation. I see you are using the alternate channel set
by setting the MUXSEL bit:
ADC0_CFG2 = ADC_CFG2_MUXSEL + ADC_CFG2_ADLSTS(2);

Can anyone explain me what is the reason for doing so? In my application,
I do not use this bit. I re(re...)read the datasheet, and I do not understand
why you do not use channel set A. I fear I am missing something, as both
your version and mine are working.

Thanks for you help,
 
See pag.96 of K20P64M50SF0RM.pdf, any of the ADxxa is reserved, Can you try with A9, A7 or A6???, for example...
 
Status
Not open for further replies.
Back
Top