ISR on pin 39 is broken by ADC / Touch Screen inputs on pin 32,33
Posted: Tue Jul 25, 2023 9:02 pm
I have an application where I have a LCD touch screen on pins 32/33/25/26 (analog read on 32/33) and separately an ISR that is triggered on pin 39.
For some reason, the ADC on pins 32/33 for the touch screen, when enabled, are keeping the ISR from running in a timely manner. The ISR (it's measuring period / frequency of a signal on 39) works perfectly when I don't do the ADC on 32/33, but as soon as I uncomment that line of code that does the ADC, the values coming from the ISR on pin 39 are all wrong / random-ish.
I've tried moving the ISR to Core0, leaving everything else on Core1 but that didn't seem to help.
Any ideas ? Thanks in advance !
For some reason, the ADC on pins 32/33 for the touch screen, when enabled, are keeping the ISR from running in a timely manner. The ISR (it's measuring period / frequency of a signal on 39) works perfectly when I don't do the ADC on 32/33, but as soon as I uncomment that line of code that does the ADC, the values coming from the ISR on pin 39 are all wrong / random-ish.
I've tried moving the ISR to Core0, leaving everything else on Core1 but that didn't seem to help.
Any ideas ? Thanks in advance !