[Answered] Assembler language reference manual ...
Posted: Mon Oct 03, 2016 5:30 am
Do we have access to an assembler language reference manual for the processor that runs the ESP32?
The back story is that I want to drive the low level timings of NeoPixels/WS2812s from an ESP32. We were able to achieve this on the ESP8266 using an assembly language construct that looked as follows:
When called, this would return the number of CPU cycles between calls. Knowing the clock frequency, we could then busy block for until some number of cycles had elapsed. This gave us the opportunity to delay/block at the 10's of nanosecond range needed for good quality WS2812 signals.
Now I haven't tried the above code fragment (which is good for ESP8266) on the ESP32 but rather than cross my fingers and hope it works, I'd like to know for sure ... and hence the question about the assembly language reference.
The back story is that I want to drive the low level timings of NeoPixels/WS2812s from an ESP32. We were able to achieve this on the ESP8266 using an assembly language construct that looked as follows:
Code: Select all
static inline uint32_t _getCycleCount(void) {
uint32_t ccount;
__asm__ __volatile__("rsr %0,ccount":"=a" (ccount));
return ccount;
}
Now I haven't tried the above code fragment (which is good for ESP8266) on the ESP32 but rather than cross my fingers and hope it works, I'd like to know for sure ... and hence the question about the assembly language reference.