Search found 8 matches

by onpa_esp32
Wed Sep 06, 2017 2:20 pm
Forum: ESP32 Arduino
Topic: pcnt_counter_clear works fine ?
Replies: 1
Views: 4209

Re: pcnt_counter_clear works fine ?

SOLVED - New arduinoespressif32 framework 1.2.0 was updated to another location. Now it works fine.

Ondrej
by onpa_esp32
Wed Sep 06, 2017 2:19 pm
Forum: ESP-IDF
Topic: pcnt_counter_clear(...) function works fine ?
Replies: 1
Views: 4259

Re: pcnt_counter_clear(...) function works fine ?

SOLVED - New arduinoespressif32 framework 1.2.0 was updated to another location. Now it works fine.

Ondrej
by onpa_esp32
Wed Sep 06, 2017 9:47 am
Forum: ESP-IDF
Topic: pcnt_counter_clear(...) function works fine ?
Replies: 1
Views: 4259

pcnt_counter_clear(...) function works fine ?

Hi, I'm playing with Pulse counter and timers to be able develop frequency counter. Unfortunatelly, calling "pcnt_counter_clear" function doesn't clear the pulse counter value... I know, that in the https://github.com/espressif/esp-idf/issues/638 was reported by Igor, that it was fixed, but I'm not ...
by onpa_esp32
Tue Sep 05, 2017 4:02 pm
Forum: ESP32 Arduino
Topic: pcnt_counter_clear works fine ?
Replies: 1
Views: 4209

pcnt_counter_clear works fine ?

Hi, I'm playing with Pulse counter and timers to be able develop frequency counter. Unfortunatelly, calling "pcnt_counter_clear" function doesn't clear the pulse counter value... I know, that in the https://github.com/espressif/esp-idf/issues/638 was reported by Igor, that it was fixed, but I'm not ...
by onpa_esp32
Mon Sep 04, 2017 1:29 pm
Forum: ESP32 Arduino
Topic: Definition "extern pcnt_dev_t PCNT" + ISR
Replies: 5
Views: 9402

Re: Definition "extern pcnt_dev_t PCNT" + ISR

Thanks. It helped. extern "C" { #include "soc/pcnt_struct.h" } #include "driver/pcnt.h" solved the issue and Pulse counter is working now. /* interrupt function for PCNT */ void IRAM_ATTR pcnt_example_intr_handler(void* arg) { uint32_t intr_status; intr_status = PCNT.int_st.val; int i; state = !stat...
by onpa_esp32
Fri Sep 01, 2017 3:26 pm
Forum: ESP32 Arduino
Topic: Definition "extern pcnt_dev_t PCNT" + ISR
Replies: 5
Views: 9402

Definition "extern pcnt_dev_t PCNT" + ISR

Folks, I'm playing with Pulse Counter in ESP32. I'm able count pulses now, but can't invoke ISR. Resp. - I'm able to define ISR, but program probably get-lock in the ISR and never release it. I'm trying to find the root-cause. Maybe, the flag for finishing interrupt is not cleared. So, I would like ...
by onpa_esp32
Tue Aug 29, 2017 2:04 pm
Forum: General Discussion
Topic: Minimum requirements to start the Hardware Counter
Replies: 7
Views: 13140

Re: Minimum requirements to start the Hardware Counter

Joster, Superkurt: Any solution with PCNT and pulse Counting of esp32.

Thanks,
Ondrej
by onpa_esp32
Tue Aug 29, 2017 7:51 am
Forum: ESP32 Arduino
Topic: Pulse counter / totalizer usage - PCNT supporting functions
Replies: 1
Views: 6390

Pulse counter / totalizer usage - PCNT supporting functions

Friends, I would like to use pulse counting on ESP32 in Arduino IDE. Unfortunately, IDF offers a lot of functions for working with counter, I don't know, how to use it in Arduino IDE. Honestly, I'm using Platform IO, but nevermind... Arduino IDE doesn't know "pcnt" functions, like pcnt_unit_config(p...