NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

StarterWare DMTimer

From Texas Instruments Wiki
Jump to: navigation, search

DMTimer[edit]

Introduction[edit]

DMTimer is a 32 bit timer and the module contains a free running upward counter with auto reload capability on overflow. The timer counter can be read and written in real-time (while counting). The timer module includes compare logic to allow an interrupt event on a programmable counter matching value.

Programming[edit]

  • DMTimer can be configured in two modes of operation. They are
  1. Timer Mode
  2. Compare Mode
  • To enable the DMTimer to operate in Timer mode, the following sequence has to be followed.
    • Configure the timer for One-shot or Auto-reload operation by calling the API DMTimerModeConfigure().
    • Load the count value for the timer by calling the API DMTimerCounterSet().
    • If Auto-reload operation is enabled then use the API DMTimerReloadSet() to load the reload value.
    • Enable the timer interrupts by using the API DMTimerIntEnable().
    • Start/Enable the timer by calling the API DMTimerEnable(). The timer will start counting.
    • Stop/Disable the timer by calling the API DMTimerDisable(). The timer will stop counting.
  • To enable the DMTimer to operate in Compare mode, the following sequence has to be followed.
    • Load the compare value to the compare register by calling the API DMTimerCompareSet.
    • Configure the timer in one shot with compare enable mode or auto reload with compare enable mode by calling the DMTimerModeConfigure API.
    • Load the count value for the timer by calling the API DMTimerCounterSet().
    • If Auto-reload operation is enabled then use the API DMTimerReloadSet() to load the reload value.
    • Enable the timer interrupts by using the API DMTimerIntEnable().
    • Start/Enable the timer by calling the API DMTimerEnable(). The timer will start counting.
    • Stop/Disable the timer by calling the API DMTimerDisable().
E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article StarterWare DMTimer here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article StarterWare DMTimer here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article StarterWare DMTimer here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article StarterWare DMTimer here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article StarterWare DMTimer here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article StarterWare DMTimer here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article StarterWare DMTimer here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article StarterWare DMTimer here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article StarterWare DMTimer here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity