i want to use Timer1 on the CC2540 as a benchmark cycle counter, essentially to count 32MHz ticks consumed by small kernels of code.... note that this mode of usage does *not* require interrupts; rather it simply starts the time and later reads the result of its counter....
in brief, the logic is a follows....
T1CTL = 0x00 // stop counter
T1CNTL = 0 // reset counter
T1CTL = 0x10 // start counting
.... // do some work
dt = T1CNTL // read low-byte first!!
dt |= T1CNTH << 8 // read buffered high-byte
T1CTL = 0x00 / /stop counter
unfortunately, Timer1 doesn't seem to do anything!!! the counter remains at 0; and even the T1CTL register reads back as 0 (even after setting the mode bits to 0x10)....
is there some other enablement that i'm missing here??? again, i'm attempting to use the timer without interrupts