Search found 5 matches

by AndyChiang
Tue Oct 18, 2022 6:53 am
Forum: General Discussion
Topic: The square-wave-output generated by timer can't greater 40000Hz
Replies: 5
Views: 1793

Re: The square-wave-output generated by timer can't greater 40000Hz

Our control must can control the number of pulse and the frequency of output pulse at the same time.
So, can not use PWM and only can utilize the ISR of timer that priority is more high.
by AndyChiang
Mon Oct 17, 2022 9:32 am
Forum: General Discussion
Topic: The square-wave-output generated by timer can't greater 40000Hz
Replies: 5
Views: 1793

Re: The square-wave-output generated by timer can't greater 40000Hz

exp-idf have (servo control) example, I can use it to modify. thanks.
by AndyChiang
Mon Oct 17, 2022 9:19 am
Forum: General Discussion
Topic: The square-wave-output generated by timer can't greater 40000Hz
Replies: 5
Views: 1793

Re: The square-wave-output generated by timer can't greater 40000Hz

I need generate a CW or CCW signal to control servo motor.
It is a square wave between 0Hz to 50000Hz.
Since the frequency must be change anytime, so I select use timer to control.
I think maybe PWM is selection.
by AndyChiang
Fri Oct 14, 2022 7:47 am
Forum: General Discussion
Topic: The square-wave-output generated by timer can't greater 40000Hz
Replies: 5
Views: 1793

Re: The square-wave-output generated by timer can't greater 40000Hz

Sorry, some description need correct:
Expected result: 50000Hz(change state from 0 to 1 or 1 to 0 in 10us)
Real result: Watchdog occurs when the generated frequency greater than 40000Hz(change state from 0 to 1 or 1 to 0 in 12.5us)
by AndyChiang
Fri Oct 14, 2022 5:29 am
Forum: General Discussion
Topic: The square-wave-output generated by timer can't greater 40000Hz
Replies: 5
Views: 1793

The square-wave-output generated by timer can't greater 40000Hz

Module: ESP32-WROOM-32D IDF version: V4.2 OS: Win7 Expected result: Generate 10000Hz squal wave by timer is successful Real result: Watchout occurs when the generated frequence is over 80000Hz Tested timer: Timer 0 of Group0 Output pin: IO26 Test Step: (1)Set TIMER_INTERVAL0_SEC = 0.000009 (2)Chang...