Sorry, I know some of this stuff is confusing. Also please note I am not a big user of the Analog stuff, but do use it some, and helped a bit to get the ADC library working on the T4.
But it is still not clear to me on how you are using adc1? Are you using the ADC library by @pedvide? As talked about in this thread:
https://forum.pjrc.com/threads/2553...for-Teensy-4-3-x-and-LC?highlight=adc+library
Or some other mechanism?
It would probably really help if you posted more of what you already have, so we might get a better feel of what you have...
In some continuous reads or the like? Are you only using ADC_1? or do you also use ADC_0?
As @defragster mentioned you can do single reads using ADC library like he shows above...
Or you can specify which of the two ADCs to use like:
Code:
value = adc->adc0->analogRead(readPin);
value = adc->adc1->analogRead(readpin);
This form only works if the ADC unit you specify actually supports that specific PIN. The first post in the thread I linked to here has images of the different teensy cards and shows which analog pin is supported by which ADC
EDIT-Warning - The images shown of the PINS for the T4 on that posting can be sort of confusing. That is
it shows ADC0 and ADC1 which are actually ADC1 and ADC2 (IMXRT numbering on these different than T3.x processors) But we integrated it, decide to try to keep code sort of consistent...