logoalt Hacker News

phkahlertoday at 4:59 PM4 repliesview on HN

>> And the CPU even has SIMD instructions!

Yes, but it looks like there is no hardware floating point. The description of the CORDIC module indicates fixed-point calculations, which is consistent with the lack of any reference to floating point.

I am happy the have CAN-FD and Motor PWM module, but nowhere did I see conversion times listed for the ADC. For motor control I demand 1uS conversion time or less, and in the last year I've switched from fixed point to floating point after holding off on that switch for ~15 years.


Replies

polpotoday at 5:17 PM

From the ESP32-S31 datasheet: "Single-precision floating-point unit (FPU) per core"

BenjiWiebetoday at 5:38 PM

The datasheet apparently doesn't say, but judging by their other products' listed 12 bit SAR ADC sampling rates (and assuming this one is similar to what appears to be their standard ADC ) the conversion time will be on the order of 10uS.

BenjiWiebetoday at 5:48 PM

Also why do you need 1uS for motor control? 1uS is 0.1 degrees of rotation at 16,666 RPM if I did the math right.

I don't know much about motor control, is it normal to need that fast of feedback?

show 4 replies
NooneAtAll3today at 5:07 PM

where did you find cordic mention?