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

Thread: The 2 Teensy 3.2 ADC's connect to which pins?

  1. #1
    Junior Member
    Join Date
    Apr 2021
    Posts
    8

    The 2 Teensy 3.2 ADC's connect to which pins?

    Hi all,

    the Teensy 3.2 has 2 ADC's which connect to different pins. I want to set up some analog pins with a different resolution than the rest but to do that i need to know which pins relate to which ADC. I can't find anything that gives me that information so i am wondering if anyone knows which pins relate to which ADC on the Teensy 3.2 board. I don't actually have a Teensy 3.2 here right now to test it out myself otherwise i'm sure i could figure it out with trial and error.

    Thanks in advance for your help.

    Cheers

    NM

  2. #2
    Member pilotplater's Avatar
    Join Date
    Dec 2017
    Location
    Ontario, Canada
    Posts
    31
    So the microcontroller on that one can by the looks of it be configured such that most or any of the analog pins connect to whichever ADC you would like. Well over my head to manually set the internal registers to do so however.

    Click image for larger version. 

Name:	chrome_nSUj4of918.png 
Views:	7 
Size:	65.6 KB 
ID:	24475

    Much of the basis of the two ADCs also appears to be so that both can be read at the same instant as a differential pair. This is hinted at in the documentation for the ADC library's "checkDifferentialPins" and "startDifferentialFast" functions.

    I don't have a teensy with me, but I think I found the key you need. This property allows you to check which ADC a given pin is connected to *at the moment* which may change if you tell it to:
    Click image for larger version. 

Name:	chrome_xCL8ikgYK7.png 
Views:	6 
Size:	52.0 KB 
ID:	24476

    This is coming from the Documentation for the ADC library.

    Click image for larger version. 

Name:	chrome_RSdTCbsjGn.png 
Views:	5 
Size:	466.7 KB 
ID:	24477

  3. #3
    Junior Member
    Join Date
    Apr 2021
    Posts
    8
    Thanks PP. I understand now.

    Probably beyond me at the moment to try changing those internal registers but at least i can check which pin is set to which ADC for the moment.

    Cheers

    NM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •