if ((Timer1_Cfg = timerBegin(10000000)) == NULL) // API 3.0 setup timer for 1uSec
The format for timerBegin is to spec the frequency the timer will operate. It seems to me that the above statement will operate the timer at 10 mhz. But for 1 uSec operation (1 micro-second) the frequency should be set to 1 mhz, not 10. Can someone explains how this works?
If I want the timer to report in milli-seconds (ie - 1 / 1000 of a second) wouldn’t this be the correct statement:
if ((Timer1_Cfg = timerBegin(1000)) == NULL) // API 3.0 setup timer for 1mSec
?