Timer Programming; Os Timer Registers; Dsp 32-Bit Os Timers - Texas Instruments OMAP5912 Reference Manual

Multimedia processor device overview and architecture
Hide thumbs Also See for OMAP5912:
Table of Contents

Advertisement

3.6

Timer Programming

3.7

OS Timer Registers

3.7.1

DSP 32-Bit OS Timers

SPRU759B
To activate the DSP and MPU OS timers, perform the following sequence:
1) Program the load register.
The content of the load register is loaded into the timer read register when
the ST bit is set.
2) Write to DSP_CNTL_TIMER or to MPU_CNTL_TIMER to configure and
start the timer.
Set the PTV value as the dividing factor for the timer clock.
J
Set the autoreload feature with the AR bit.
J
Set the ST bit to start the timer.
J
3) You can stop the timer at any time by resetting the ST bit (bit 0) of the
DSP_CNTL_TIMER or MPU_CNTL_TIMER.
Note:
Only the ST or CLOCK_ENABLE bits of DSP_CNTL_TIMER or
MPU_CNTL_TIMER can be written while the timer is running. Undefined
results occur if the prescaler (PTV) or autoreload (AR) bits in the control
register or timer load registers are written while the timer is running.
The following sections describe the DSP and MPU operating system timer
registers.
Note:
The register descriptions and base address offsets given here apply identi-
cally to each of the three DSP or three MPU OS timers. See the Applications
Processor Data Manual (SPRS231), to determine the base address for each
timer.
Accesses to the DSP 32-bit OS timer registers are controlled by the DSP
private TIPB. Table 18 lists the DSP OS timer registers. Table 19 through
Table 23 provide register bit descriptions.
OMAP3.2 Operating System Timer
Timers
25

Advertisement

Table of Contents
loading

Table of Contents