Search found 5 matches

by twadek
Mon Jun 24, 2024 1:52 pm
Forum: ESP-IDF
Topic: Tri-state MCPWM outputs
Replies: 0
Views: 1404

Tri-state MCPWM outputs

Hello, I have an application where it would be ideal to tri-state one of my MCPWM outputs. Instead of push-pull PWM toggle, I would like the PWM to go high on the timer event and go high impedance (Hi-Z) rather than low on the compare event. As far as I can tell, this is not supported in "esp-idf/co...
by twadek
Tue May 14, 2024 2:58 pm
Forum: ESP-IDF
Topic: [SOLVED] MCPWM Capture: Cannot set 'intr_priority'.
Replies: 2
Views: 640

Re: MCPWM Capture: Cannot set 'intr_priority'.

Thank you for the help. I was indeed compiling an old version unknowingly.
by twadek
Mon May 13, 2024 7:28 pm
Forum: ESP-IDF
Topic: [SOLVED] MCPWM Capture: Cannot set 'intr_priority'.
Replies: 2
Views: 640

[SOLVED] MCPWM Capture: Cannot set 'intr_priority'.

Hello, I am having an issue when setting the interrupt priority of a capture channel. When I compile this function, I get the error: 'mcpwm_capture_channel_config_t' has no member named 'intr_priority'. void vCreateCaptureChannels(mcpwm_cap_channel_handle_t xCaptureChannels[], mcpwm_cap_timer_handle...
by twadek
Wed Dec 20, 2023 3:45 pm
Forum: ESP-IDF
Topic: [SOLVED] MCPWM works in app_main but not in a FreeRTOS task
Replies: 3
Views: 6154

Re: MCPWM works in app_main but not in a FreeRTOS task

That worked. Thank you for the help!
by twadek
Tue Dec 19, 2023 9:51 pm
Forum: ESP-IDF
Topic: [SOLVED] MCPWM works in app_main but not in a FreeRTOS task
Replies: 3
Views: 6154

[SOLVED] MCPWM works in app_main but not in a FreeRTOS task

Hello, I am experiencing an issue with MCPWM when inside a FreeRTOS task. My code is adapted from the esp-idf BLDC MCPWM example: https://github.com/espressif/esp-idf/tree/v4.3/examples/peripherals/mcpwm/mcpwm_bldc_control . When executed in app_main as a standalone function, motor control works as ...