Search found 4 matches

by zanzara
Mon Sep 11, 2023 6:39 am
Forum: Hardware
Topic: Which a periphery is named as "AMP" in Errata sheet?
Replies: 0
Views: 1753

Which a periphery is named as "AMP" in Errata sheet?

Hello!

In https://www.espressif.com/sites/default/files/documentation/esp32_errata_en.pdf on 3.11 you can read

"3.11. When certain RTC peripherals are powered on, the inputs of GPIO36 and GPIO39 will be pulled down for approximately 80 ns.
Details:
Powering on the following RTC peripherals will ...
by zanzara
Wed Jun 29, 2022 7:48 pm
Forum: Hardware
Topic: How to detect a cause of interrupt on GPIO (rise or fall) ?
Replies: 4
Views: 9079

Re: How to detect a cause of interrupt on GPIO (rise or fall) ?


If I understand what your asking, I believe this example does what you want.
https://github.com/espressif/esp-idf/blob/master/examples/peripherals/gpio/generic_gpio/main/gpio_example_main.c

When the IRQ fires for the pin, it reads the pin level and sends that value via xQueueSendFromISR ...
by zanzara
Wed Jun 29, 2022 7:41 pm
Forum: Hardware
Topic: How to detect a cause of interrupt on GPIO (rise or fall) ?
Replies: 4
Views: 9079

Re: How to detect a cause of interrupt on GPIO (rise or fall) ?


I use method 1.
There is no need to read the GPIO via ADC. Simply use gpio_get_level(gpio_num_t gpio_num).
HTH

Thanks a lot for the advice!
I made some tests.


/* snippet 1 */
/* SOME_GPIO_ISR configured for [b]any edge[/b] interrupt firing, the pulses has active level LOW. */

static bool ...
by zanzara
Sat Jun 25, 2022 11:14 am
Forum: Hardware
Topic: How to detect a cause of interrupt on GPIO (rise or fall) ?
Replies: 4
Views: 9079

How to detect a cause of interrupt on GPIO (rise or fall) ?

Hi there!

I work with ESP 32 (ESP-IDF) and try to detect a cause of interrupt - rising or falling edge. I know some ways to accomplish. So:
1. Use one GPIO configured as an interrupt emitter (rise and fall), after it we need to measure a voltage on GPIO (of course by ADC) - is not bad method, but ...

Go to advanced search