Do these really do the same thing by manipulating different values? From what I understand, setPeriod() changes the prescaler automatically to make the period close to the defined value (in us). That means that the counter will always count to 65535 before resetting, but each count may have a different time value (10us per count, 1us per count, 1s per count...) depending on the prescaler value. setOverflow(), from what I was reading, will change the value that the counters count up to. I don't think I can do this, but I'd like to actually set that value higher than 65535. I have an external interrupt that handles resetting the counters back to zero, so I'd rather disable the internal feature. I know I could make a code like this,
void setup() {
Timer1.setCompare1(65534);
Timer1.attachCompare1Interrupt(Reset);
}
void Reset() {
Timer1.setCount(1);
}
but I'd prefer not to. The fewer interrupts I deal with, the better. I'd rather make this code.
void setup() {
Timer1.setOverflow(999999); //999999 is arbitrary here to show a really long time.
}
Any ideas?