Hey mate,
I want to set up a 1ms timer interrupt in AT89S52. I noticed in the datasheet that it has 3 timers — Timer 0, 1, and 2. From what I understand, Timer 2 seems to be the best choice for this, mainly because it supports auto-reload and capture features.
It feels like it would give better accuracy compared to the other timers, but I’m not exactly sure why or how it's more accurate. Am I thinking in the right direction here, or does it not really matter for something like a 1ms interrupt?
I want to set up a 1ms timer interrupt in AT89S52. I noticed in the datasheet that it has 3 timers — Timer 0, 1, and 2. From what I understand, Timer 2 seems to be the best choice for this, mainly because it supports auto-reload and capture features.
It feels like it would give better accuracy compared to the other timers, but I’m not exactly sure why or how it's more accurate. Am I thinking in the right direction here, or does it not really matter for something like a 1ms interrupt?