Search found 4 matches

by TinkerBearNZ
Mon Jul 15, 2019 6:13 am
Forum: Report Bugs
Topic: LEDC low-speed channels not starting?
Replies: 0
Views: 502

LEDC low-speed channels not starting?

I've been trying to use (possibly mis-use) the LEDC PWM generators as general waveform generators. I've run into an instance where setting up 1 high-speed channel and 1 low-speed channel at a low frequency results in no output on the low-speed channel. This has been super frustrating, because I've g...
by TinkerBearNZ
Mon Jul 15, 2019 5:57 am
Forum: ESP32 Arduino
Topic: Frequency Measurement on digital input
Replies: 9
Views: 6702

Re: Frequency Measurement on digital input

Wouldn't you get more accuracy by using a hardware signal to gate the counter? Like... using a 5Hz signal from the LEDC, fed to a GPIO that's also used as the counter gate. Then it's just a matter of adding an interrupt routine on the negative edge of the gate signal to grab the count. I've had to p...
by TinkerBearNZ
Tue Jul 09, 2019 10:52 pm
Forum: Sample Code
Topic: Sinus Signal Generator from 18Hz to 250kHz
Replies: 3
Views: 2250

Re: Sinus Signal Generator from 18Hz to 250kHz

Some interesting trade-offs using this as a waveform generator. If you use an RTC clock divider of 1, you get lovely smooth waveforms, but you can only generate multiples of ~131.6Hz (at least on my board). Waveforms up to the 500kHz range look pretty decent. If you use an RTC clock divider of 8, yo...
by TinkerBearNZ
Thu Jul 04, 2019 6:08 am
Forum: Sample Code
Topic: Sinus Signal Generator from 18Hz to 250kHz
Replies: 3
Views: 2250

Re: Sinus Signal Generator from 18Hz to 250kHz

I'm looking at the esp32 Technical Reference Manual, section 28.5.4, and it says: A phase-shift of 0 / 90 / 180 / 270 degrees can be added by setting register SENS_SAR_DAC_INVn[1:0]. Do you think this is just a documentation error? My experimentation with the invert values has discovered useful outp...

Go to advanced search