Forum Rule: Always post complete source code & details to reproduce any issue!
-
[ teensy3, adc, muxsel ]
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...
-

Originally Posted by
flipflop
See pag.96 of K20P64M50SF0RM.pdf, any of the ADxxa is reserved, Can you try with A9, A7 or A6???, for example...
OK, I understand now ... thanks for your reply. Actually, using AD7A would not work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules