Search found 8 matches
- Sun Dec 09, 2018 12:19 pm
- Forum: ESP-IDF
- Topic: LEDC unstable frequency
- Replies: 11
- Views: 20062
[solved] LEDC unstable frequency
tried it and it works. With power management enabled, frequency is now stable as it should be. Due to the lower timer input frequency, i had to reduce the resolution from 10 to 9 bit. #include "esp_err.h" #include "esp_log.h" #include "driver/ledc.h" #include "driver/periph_ctrl.h" #include "soc/led...
- Tue Dec 04, 2018 9:22 pm
- Forum: ESP-IDF
- Topic: LEDC unstable frequency
- Replies: 11
- Views: 20062
Re: LEDC unstable frequency
Thx, there is
uint32_t tick_sel: 1; /*This bit is used to choose apb_clk or ref_tick for high speed timer. 1'b1:apb_clk 0:ref_tick*/
in the ledc soc struct. However, i have not found a way to influence this via the ledc driver, any hint ?
uint32_t tick_sel: 1; /*This bit is used to choose apb_clk or ref_tick for high speed timer. 1'b1:apb_clk 0:ref_tick*/
in the ledc soc struct. However, i have not found a way to influence this via the ledc driver, any hint ?
- Tue Dec 04, 2018 10:33 am
- Forum: ESP-IDF
- Topic: LEDC unstable frequency
- Replies: 11
- Views: 20062
Re: LEDC unstable frequency
the problem is still present. It works when i do not enable "Enable dynamic frequency scaling (DFS) at startup" If this option is enabled, the ledc frequency is >99% wrong, it looks like this (half the requested frequency and unstable) PilotWrong.png with disabled "enable "Enable dynamic frequency s...
- Sat Nov 17, 2018 2:13 pm
- Forum: ESP-IDF
- Topic: LEDC unstable frequency
- Replies: 11
- Views: 20062
LEDC unstable frequency
esp-idf v3.1.1 I'm tying to generate an 1 KHz frequency uning ledc (without fade) and the frequency is not stable. How can i fix this ? SDS00002.png Code is as follows: #define J1772_LEDC_TIMER LEDC_TIMER_0 #define J1772_LEDC_CHANNEL LEDC_CHANNEL_0 #define J1772_LEDC_TIMER_RES LEDC_TIMER_10_BIT #def...
- Wed Jun 27, 2018 10:53 am
- Forum: ESP-IDF
- Topic: i2c bug in 3.0, works with older idf
- Replies: 9
- Views: 12938
Re: i2c bug in 3.0, works with older idf
Current master is technically "3.2-dev". Sorry, Tried as follows: Recompiled and flashed using 3.2-dev, had to soft restart 2 times to freeze i2c. Recompiled 3.2-dev with your new "i2c_master_clear_bus", uploaded, did a soft restart and i2c works well. Thanks for the fix. Will your fix be integrate...
- Sun Jun 24, 2018 12:46 pm
- Forum: ESP-IDF
- Topic: i2c bug in 3.0, works with older idf
- Replies: 9
- Views: 12938
i2c bug in 3.0, works with older idf
tried to update to the current idf from github yesterday (June 23, 2018). After that, i had sporadic timeout retuned by i2c_master_cmd_begin. This always happend after i updated the firmware on my esp and restarted (via reset button or software). If this happens, i2c is dead and the only way to get ...
- Sat Feb 10, 2018 7:49 pm
- Forum: ESP-IDF
- Topic: Ethernet Stack Overflow
- Replies: 1
- Views: 4004
Ethernet Stack Overflow
the stack for emacT seems to be to small (2k). The ethernet sample works but in my software i always got stack overflow. I had to change the stacksize to 3k and it seems to work. I had that problem with git versions from december 2017 up to the latest one Feb 2018. esp-idf/components/ethernet/emac_m...
- Fri Oct 27, 2017 10:56 pm
- Forum: ESP-IDF
- Topic: LEDC triggers ADC
- Replies: 0
- Views: 2513
LEDC triggers ADC
I'm not sure if it is possible with the ESP32 (using esp-idf): i need to create a 1 KHZ pulse with variable duty cycle, should be easy using ledc. However, i need to measure a voltage (8 bit resolution would be ok) at the high time of the cycle. I could simply connect 2 pins to generate an interrupt...