Cause I'm just landed ESP32 world, and I'm from Arduino Island.
I've found there seems no "analogWrite()" here, but LEDC and SigmaDelta. Then I'm thinking which one should I used to replace the Arduino Word "analogWrite()".
I did some research,
LEDC channel number is 16, while SigmaDelta's is 8, LEDC is better.
LEDC's Duty Resolution is 1-16bits, while SigmaDelta's is 8, LEDC is better.
LEDC's Frequency is depended on Resolution, And I got the result of 8-bit resolution is 312.5KHz, which is same as SigmaDelta's, draw.
LEDC can't reach its Full Power, but which should be okay for a PWM...
It seems the score between LEDC and SigmaDelta is 3:1, LEDC is the winner.For duty resolution of 8 buts, the maximal frequency is 312.5 kHz.
The available duty levels are (2^bit_num)-1, where bit_num can be 1-15.
The maximal frequency is 80000000 / 2^bit_num
But I guess that SigmaDelta should have some advantage, which I don't know. Or it should not be created.
Is LEDC slow? consume more calculation resources? I'm not a tech geek.
Please help me find SigmaDelta's advantage. Thanks.