Electronic – High resolution timer on the BeagleBone

beagleboardtimer

Is there a high-resolution timer (microsecond resolution or better) available on the BeagleBone (TI AM3358 ARM Cortex-A8 based) development board?

Best Answer

Yes, DMTIMER - see page 3729 of the Sitara Arm Cortex A8 Technical Reference Manual. It can accept a wide range of clock frequencies and has a programmable prescaler allowing values from 1 to 256. For example, it has a precision of 37ns when fed a 27MHz clock with a prescaler of 1 (Table 20-1 in the manual). However, if you're using an operating system chance are it's already utilizing that timer and you'll be dependent on the operating system for timing.