Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read ADC2 will trigger other GPIO Pin's interrupt #1806

Closed
adherent88 opened this issue Apr 2, 2018 · 2 comments
Closed

read ADC2 will trigger other GPIO Pin's interrupt #1806

adherent88 opened this issue Apr 2, 2018 · 2 comments

Comments

@adherent88
Copy link

Hi all,

I encountered a very weird issue.

I am using esp wrover as development kit.

I registered ISR for 4 GPIO pins to respond to falling and rising edge, simplified code as following:
`
//install gpio isr service
gpio_install_isr_service(ESP_INTR_FLAG_DEFAULT);

//hook isr handler for specific gpio pin
gpio_isr_handler_add(34, gpio_isr_handler, (void*) 34);
gpio_isr_handler_add(35, gpio_isr_handler, (void*) 35);
gpio_isr_handler_add(36, gpio_isr_handler, (void*) 36);
gpio_isr_handler_add(39, gpio_isr_handler, (void*) 39);

`

And I observed that as soon as I try to read one ADC channel, ISR gpio_isr_handler is triggered, whatever GPIO pin it is. e.g.:
int temp; adc2_get_raw( ADC2_CHANNEL_2, ADC_WIDTH_12Bit, &temp);

Here ADC2_CHANNEL_2 is GPIO2, I tried also with other channels, e.g. channel7(GPIO27), channel8(GPIO25), the behavior is the same.

Only GPIO36 and GPIO39 have the weird behavior, 34, 35 seem ok. And the level of GPIO36 and 39 remain high, no level change at all, but still the ISR is triggered.

Any idea or hint will be highly appreciated!

@krzychb
Copy link
Collaborator

krzychb commented Apr 2, 2018

Any idea or hint will be highly appreciated!

Please see #1096 and Silicon Errata (PDF)

@adherent88
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants