Search found 2 matches

by tomi_isp
Wed Sep 18, 2019 1:05 pm
Forum: ESP32 Arduino
Topic: PWM with sync input
Replies: 6
Views: 9625

Re: PWM with sync input

Hi, after some experiments I was able to set PWM/SYNC with mcpwm in Arudino, seems this works fine but I also try to setup Capture mode, I follow example for mcpwm but I stuck on reading/setting registers, problem is with this lines: static mcpwm_dev_t *MCPWM[2] = {&MCPWM0, &MCPWM1}; it end with err...
by tomi_isp
Tue Sep 10, 2019 4:29 pm
Forum: ESP32 Arduino
Topic: PWM with sync input
Replies: 6
Views: 9625

PWM with sync input

Hi, I need (on ESP32) generate PWM signal (400Hz), this is fine but I need to sync this PWM to AC mains 50Hz (via optocoupler). Can anyone point me how to do on ESP32/Arduino ? In old design (M2560) I have connected "sync" signal to INT pin and just reset/restart Timer what generates PWM on each ris...