Search found 287 matches

by boarchuz
Sun Apr 19, 2020 1:54 pm
Forum: ESP-ADF
Topic: ULP Timestamp and support for structs
Replies: 10
Views: 4740

Re: ULP Timestamp and support for structs

Post the rest of your code
by boarchuz
Wed Apr 15, 2020 10:50 pm
Forum: ESP-IDF
Topic: Documentation discrepancy RTC fast clock
Replies: 5
Views: 1310

Re: Documentation discrepancy RTC fast clock

jsam589 wrote:
Wed Apr 15, 2020 9:27 pm
I thought I was looking at the latest, v4.1 from Nov 2019.
Sorry I must have been looking at 167!
by boarchuz
Wed Apr 15, 2020 8:47 pm
Forum: ESP-IDF
Topic: Documentation discrepancy RTC fast clock
Replies: 5
Views: 1310

Re: Documentation discrepancy RTC fast clock

What version are you looking at? The latest version shows CK8M_OUT*.

Div:
https://github.com/espressif/esp-idf/bl ... clk.c#L535
by boarchuz
Tue Apr 14, 2020 7:06 pm
Forum: ESP-IDF
Topic: Use HX711 data in ULP
Replies: 3
Views: 1180

Re: Use HX711 data in ULP

https://esp32.com/viewtopic.php?t=10116#p46617
I don't have a HX711 to test that program so I doubt it works right off the bat (and I can see now that the wake up logic is wrong) but it might be useful as a starting point.
by boarchuz
Tue Apr 14, 2020 10:34 am
Forum: ESP-ADF
Topic: ULP Timestamp and support for structs
Replies: 10
Views: 4740

Re: ULP Timestamp and support for structs

Yes of course. Once it's loaded and started it will do its own thing regardless of what the SoC is up to.
by boarchuz
Tue Apr 14, 2020 3:56 am
Forum: ESP-ADF
Topic: ULP Timestamp and support for structs
Replies: 10
Views: 4740

Re: ULP Timestamp and support for structs

You can use the REG_RD and REG_WR instructions for registers, which allow you to specify a bit range to write (up to 8 bits) or read (up to 16 bits). There are also macros to help with this: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/ulp_instruction_set.html#convenience-m...
by boarchuz
Sun Apr 12, 2020 9:42 pm
Forum: ESP-IDF
Topic: Is there a ULP workaround to change sleep time?
Replies: 5
Views: 1164

Re: Is there a ULP workaround to change sleep time?

Yes, changing sleep interval won't work on auto.

In deep sleep, the RTC peripheral domain is automatically powered down when the ULP halts. When the ULP sleep timer expires, it will power up again and start the ULP.
You need to force it to remain on regardless of ULP state.
by boarchuz
Sun Apr 12, 2020 9:36 pm
Forum: ESP-IDF
Topic: ADC returning a false value
Replies: 4
Views: 1121

Re: ADC returning a false value

Can you check the voltage on 33 with a multimeter? The ESP32 ADC seems fine, I suspect you're not getting what you expect from that little peripheral board that we "don't need to know about".

The ESP32 may be damaged if you've had >3.6V on any of the pins.
by boarchuz
Sun Apr 12, 2020 9:15 pm
Forum: ESP-IDF
Topic: Are ULP restrictions gone in silicon V3?
Replies: 4
Views: 1205

Re: Are ULP restrictions gone in silicon V3?

As a workaround you can use the ULP to generate a ext1 interrupt with simple RTC IO operations (I'm not sure if the same pin can be used as both ext1 input and ULP output, or if you need to externally connect two separate pins).
by boarchuz
Sun Apr 12, 2020 3:34 am
Forum: ESP-IDF
Topic: Is there a ULP workaround to change sleep time?
Replies: 5
Views: 1164

Re: Is there a ULP workaround to change sleep time?

Oh and as another option I use a method in https://github.com/boarchuz/HULP that converts milliseconds to RTC ticks which allows for really easy ULP timing/multitasking. It's built around the ULP macros style but it should be easy enough to replicate for normal ULP programming if you prefer. There's...

Go to advanced search