I use hardware timers
bitTimer = timerBegin(0, 2, true);
timerAttachInterrupt(bitTimer, &timerESP, true);
timerAlarmWrite(bitTimer, halfBit, true);
timerAlarmEnable(bitTimer);
My board uses a 40 MHz 10ppm crystal, I want to improve the accuracy of the timer. From the documentation I understood that the 40 MHz crystal does not affect the timers. But I saw that you can use the ability to connect an external 32 kHz crystal. But I can't find information about what exactly affects the accuracy of the hardware timer. Please tell me. Is it true that using an external 32 kHz crystal with an error of 0.2 ppm will increase the accuracy of the timers?
timerBegin(0, 2, true)
so the 32.768kHz RTC crystal is irrelevant for your application if you are expecting a timer running at 20MHz.