Search found 157 matches

by urbanze
Tue May 22, 2018 6:30 pm
Forum: General Discussion
Topic: Wrong ULP Consumption ?
Replies: 6
Views: 135

Re: Wrong ULP Consumption ?

1.4mA is usually with adc or touch powered on. You are measuring module/chip consumption only right? Although for some reason it is reported as 1.4ma here https://github.com/espressif/esp-iot-solution/blob/master/documents/low_power_solution/esp32_ulp_co-processor_and_assembly_environment_setup_en....
by urbanze
Tue May 22, 2018 1:25 am
Forum: General Discussion
Topic: Wrong ULP Consumption ?
Replies: 6
Views: 135

Re: Wrong ULP Consumption ?

WiFive wrote:Did you try adc_power_off


I test it now but still ~1.50mA. Why this x10 error?
by urbanze
Mon May 21, 2018 8:31 pm
Forum: General Discussion
Topic: Wrong ULP Consumption ?
Replies: 6
Views: 135

Wrong ULP Consumption ?

What is the consumption of ULP in 100% Duty Cycle? Datasheet says about 150uA, however, I getting 1.50~1.40mA, why? I tried power down some domains manually but this doesn't change consumption. C extern const uint8_t ulp_main_bin_start[] asm("_binary_ulp_main_bin_start"); extern const uint...
by urbanze
Fri May 04, 2018 12:15 pm
Forum: General Discussion
Topic: Get interrupt reason in callback
Replies: 10
Views: 306

Re: Get interrupt reason in callback

Personally I would suggest you use level interrupts and sw debouncing and when you receive a high interrupt, change the next interrupt to low and so on. In most of simple microcontrollers, if same interrupt occur inside of your ISR, this new interrupt is ignored because is "critical section&qu...
by urbanze
Fri May 04, 2018 2:26 am
Forum: General Discussion
Topic: Get interrupt reason in callback
Replies: 10
Views: 306

Re: Get interrupt reason in callback

You can read the pin state in the isr but this is limited by how fast isr can execute and pulse width and noise. What kind of signal are you trying to measure? Maybe you can use the rmt peripheral and then you have samples of the whole signal. There is no specific signal, it is the generic inputs o...
by urbanze
Fri May 04, 2018 1:56 am
Forum: General Discussion
Topic: Get interrupt reason in callback
Replies: 10
Views: 306

Re: Get interrupt reason in callback

I don't think there is anything that would store the interrupt type, the logic just sets the interrupt flag or not. I test this problem by assigning for example, instead of any, posedge. Even so in some interrupts, the isr returns me LOW (reading the input pin), because low level after edge and etc...
by urbanze
Thu May 03, 2018 4:48 pm
Forum: General Discussion
Topic: Get interrupt reason in callback
Replies: 10
Views: 306

Re: Get interrupt reason in callback

I tried some registers but I can't find ISR reason (if callback is because rising/falling). :x :(

-GPIO_STATUS_REG
-GPIO_PCPU_INT_REG
-GPIO_PCPU_NMI_INT_REG
-GPIO_PIN0_REG

Please help :oops:
by urbanze
Thu May 03, 2018 2:11 pm
Forum: General Discussion
Topic: Get interrupt reason in callback
Replies: 10
Views: 306

Re: Get interrupt reason in callback

Not sure if its helping but why not have an ISR per edge type, or read the pin state outside the ISR. Yes, I thought I would leave two types of ISR (rising and falling), but when I make the 2 assignments, the last one will not overwrite the previous one? //Set rising ISR gpio_set_intr_type(gpio_num...
by urbanze
Thu May 03, 2018 11:52 am
Forum: General Discussion
Topic: Get interrupt reason in callback
Replies: 10
Views: 306

Re: Get interrupt reason in callback

any one can help me? :cry:
by urbanze
Wed May 02, 2018 5:54 pm
Forum: General Discussion
Topic: Get interrupt reason in callback
Replies: 10
Views: 306

Get interrupt reason in callback

I have one global callback to 7 GPIO's with ANY_EDGE interrupt. Inside of callback, I read pin state from REG, however, it's causing errors with fast edge's because slow input frequency of GPIO's (~5us per edge). How can I get callback reason (POS_EDGE or NEG_EDGE) from my global ISR callback? I loo...

Go to advanced search