Search found 9608 matches

by ESP_Sprite
Tue Jan 31, 2017 2:31 am
Forum: ESP-IDF
Topic: miniz library in ROM - usable for application development?
Replies: 13
Views: 26177

Re: miniz library in ROM - usable for application development?

In theory, it can be quicker (less pressure on the flash cache) and uses less flash memory. It's in ROM anyway, why not use it?
by ESP_Sprite
Sun Jan 29, 2017 7:20 am
Forum: ESP-IDF
Topic: Use I2S in I2S_MODE_DAC_BUILT_IN Mode
Replies: 7
Views: 13365

Re: Use I2S in I2S_MODE_DAC_BUILT_IN Mode

I think the DAC mode is one of the odd ones that uses BCLK as the latch clock. All other parallel modes seem to use WS for that. Not entirely sure; I can't really ask the hw people at this moment.
by ESP_Sprite
Sun Jan 29, 2017 3:48 am
Forum: ESP-IDF
Topic: Use I2S in I2S_MODE_DAC_BUILT_IN Mode
Replies: 7
Views: 13365

Re: Use I2S in I2S_MODE_DAC_BUILT_IN Mode

Fyi, it seems the I2S driver has a bug in DAC mode: the sample rate it sets is actually 8 times the sample rate you tell it to use. I have a bug fix in the internal merge queue, it will probably be merged after the holidays.
by ESP_Sprite
Sun Jan 29, 2017 2:45 am
Forum: Hardware
Topic: I2S - output main clock to codec
Replies: 2
Views: 6978

Re: I2S - output main clock to codec

Sorry, as is the audio PLL still is not documented. I also do not know if it's possible to route its output directly to a GPIO.
by ESP_Sprite
Sun Jan 29, 2017 2:38 am
Forum: ESP32 Arduino
Topic: Can use analogWrite in ESP32? if not what is option?
Replies: 2
Views: 9946

Re: Can use analogWrite in ESP32? if not what is option?

Moved to the Arduino forum.
by ESP_Sprite
Sat Jan 28, 2017 5:47 am
Forum: General Discussion
Topic: Use of dual core
Replies: 32
Views: 81435

Re: Use of dual core

I think the compiler sees you're doing nothing with the result of i and j, and happily optimizes away the entire loop; the time will then mostly come down to the printf() which is bound for all processes by the serial port speed. Make one or both variables volatile, and you should have a more effect...
by ESP_Sprite
Sat Jan 28, 2017 5:42 am
Forum: Hardware
Topic: [Answered] What are the ADC input ranges?
Replies: 17
Views: 99565

Re: [Answered] What are the ADC input ranges?

Aye, sure, obviously we'll make any correction algorithm we come up with as small as possible. Big-ass table if needed, simple math if possible. We also want to see if there are any effects with changing supply voltage, temperature, or specific chip, so the end result may get somewhat more complicat...
by ESP_Sprite
Sat Jan 28, 2017 2:11 am
Forum: General Discussion
Topic: Use of dual core
Replies: 32
Views: 81435

Re: Use of dual core

Seems vTaskEndScheduler actually is a stub; it just disables all interrupts, marks the scheduler on the core as not-running and returns. This should work, unless you decide to enable interrupts somewhere later in your routine again: that would also enable the tick interrupt as well, and with the sch...
by ESP_Sprite
Sat Jan 28, 2017 2:01 am
Forum: Hardware
Topic: [Answered] What are the ADC input ranges?
Replies: 17
Views: 99565

Re: [Answered] What are the ADC input ranges?

Fyi, the way we are going to fix this is by adding calibration curves to the ESP32. The idea is to have a lookup table or function that maps each ADC value to the value it should be. That should help with the linearity, at the cost of maybe a bit or two of precision. Not much we can do in software a...
by ESP_Sprite
Fri Jan 27, 2017 9:32 am
Forum: General Discussion
Topic: Use of dual core
Replies: 32
Views: 81435

Re: Use of dual core

Actually, a critical section would be a pretty nice way to achieve this. Basically, this is how it should work: static portMUX_TYPE my_spinlock = portMUX_INITIALIZER_UNLOCKED; void my_task(void *arg) { while(1) { if (start_communication) { portENTER_CRITICAL(&my_spinlock); //Do all your timing-criti...