Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: [ teensy3, adc, muxsel ]

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    13

    [ 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,

  2. #2
    See pag.96 of K20P64M50SF0RM.pdf, any of the ADxxa is reserved, Can you try with A9, A7 or A6???, for example...

  3. #3
    Junior Member
    Join Date
    Apr 2013
    Posts
    13
    Quote Originally Posted by flipflop View Post
    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
  •