Enabling And Disabling Timers - Analog Devices VisualDSP++ 5.0 Service Manual

Visualdsp++ 5.0 device drivers and system for blackfin processors
Table of Contents

Advertisement

Operation
Note in the above fragment that the core timer was enabled immediately
after being configured and the watchdog and general-purpose timers were
not enabled. Any timer can be enabled via a command table, typically the
last entry in the table. For illustrative purposes, enabling the watchdog
and general-purpose timers is shown separately in
abling
Timers".

Enabling and Disabling Timers

After the timer is configured, it can be enabled. When using a command
table, the timer can be enabled as a command in the table as shown in
"Configuring a Timer" on page
the timer is the last entry in the table. Alternatively, timers can be enabled
by a separate call to the appropriate control function. Further, gen-
eral-purpose timers can be simultaneously enabled and disabled as a
group.
The following fragment illustrates how to enable the watchdog timer and
then simultaneously enable general-purpose timers 0 and 1.
Result = adi_tmr_WatchdogControl
Result = adi_tmr_GPGroupEnable
When a timer is disabled, it can be disabled as part of a command table
(though this is unlikely). More often, timers are disabled via a single con-
trol function call. As with the enabling of general-purpose timers, timers
can be disabled simultaneously. The following code fragment illustrates
how to disable the watchdog timer and simultaneously disable gen-
eral-purpose timers 0 and 1.
8-12
8-10. Typically, the command to enable
(ADI_TMR_WDOG_CMD_ENABLE_TIMER, (void *)TRUE);
(ADI_TMR_GP_TIMER_0 | ADI_TMR_GP_TIMER_1, TRUE);
VisualDSP++ 5.0 Device Drivers and System
"Enabling and Dis-
Services Manual for Blackfin Processors

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?

Table of Contents