CINXE.COM
Timer Practice — Compare and Hardware Frequency Divider | Video | TI.com
<!DOCTYPE HTML> <html lang="en-US"> <head> <script src="/assets/js/headerfooter/ticommon.js?single" type="text/javascript"></script> <script src="/Dl82I3Ui/init.js" type="text/javascript"></script> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="x-ua-compatible" content="IE=edge"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <meta charset="UTF-8"/> <title>Timer Practice — Compare and Hardware Frequency Divider | Video | TI.com</title> <meta name="keywords" content="Timer Practice — Compare and Hardware Frequency Divider,video tutorial"/> <meta name="description" content="This video demonstrates how to use the compare feature of the Timer on MSPM0L1306."/> <meta property="og:title" content="Timer Practice — Compare and Hardware Frequency Divider | Video | TI.com"/> <meta property="og:description" content="This video demonstrates how to use the compare feature of the Timer on MSPM0L1306."/> <meta property="og:type" content="article"/> <meta name="twitter:card" content="summary_large_image"/> <meta name="twitter:title" content="Timer Practice — Compare and Hardware Frequency Divider | Video | TI.com"/> <meta name="twitter:description" content="This video demonstrates how to use the compare feature of the Timer on MSPM0L1306."/> <meta property="og:url" content="https://www.ti.com/video/single.html"/> <meta property="og:image" content="https://www.ti.com/content/dam/videos/external-videos/en-us/11/3816841626001/timer-practice-compare-hardware-frequency-divider.mp4/jcr:content/renditions/brc_thumbnail.png"/> <meta name="twitter:image" content="https://www.ti.com/content/dam/videos/external-videos/en-us/11/3816841626001/timer-practice-compare-hardware-frequency-divider.mp4/jcr:content/renditions/brc_thumbnail.png"/> <script type="text/javascript"> var tiPageName; tiPageName = "video Timer Practice — Compare and Hardware Frequency Divider-en"; </script> <script type="text/javascript"> var tiContentGroup; tiContentGroup = "/Analog and Mixed-Signal/Microcontrollers \u0028MCUs\u0029 \u0026 processors/Arm-based microcontrollers/Arm Cortex-M0\u002B MCUs/MSPM0L1306/"; </script> <script type="text/javascript"> var tiTemplate; tiTemplate = "single video"; </script> <script type="text/javascript"> var tiProductPathID; tiProductPathID = "/4/5018/193120/1926666/"; </script> <script type="text/javascript"> var tiProductPathName; tiProductPathName = "/Microcontrollers (MCUs) & processors/Arm-based microcontrollers/Arm Cortex-M0+ MCUs/MSPM0L1306/"; </script> <script type="text/javascript"> var tiPageTranslationStatus; tiPageTranslationStatus = ""; </script> <script type="text/javascript"> var tiPageStatus; tiPageStatus = "2023-01-20 13:55:50"; </script> <script type="text/javascript"> var tiCMS; tiCMS = "2.0"; </script> <script type="text/javascript"> var videoContentLoc; videoContentLoc = "https://players.brightcove.net/3816841626001/d0PyGHVSu_default/index.html?videoId=6365061860112"; </script> <script src="https://www.ti.com/assets/js/headerfooter/analytics.js" type="text/javascript"></script> <link rel="canonical" href="https://www.ti.com/video/6365061860112"/> <link rel="alternate" hreflang="x-default" href="https://www.ti.com/video/6365061860112"/> <link rel="alternate" hreflang="en" href="https://www.ti.com/video/6365061860112"/> <link rel="stylesheet" href="/etc.clientlibs/ti/clientlibs/clientlib-all.min.css" type="text/css"> <!-- font preloads --> <link rel="preload" as="style" href="https://www.ti.com/assets/fonts/font.css"/> <link rel="preload" as="font" href="https://www.ti.com/assets/fonts/roboto-v20-latin-ext_latin_greek-regular.woff"/> <!-- global css for portal redesign --> <link rel="preload" as="style" href="https://www.ti.com/assets/style/ticom.global.portals.css"/> <link rel="stylesheet" type="text/css" href="https://www.ti.com/assets/style/ticom.global.portals.css"/> <!-- responsive header css --> <link rel="preload" as="style" href="https://www.ti.com/assets/js/@ticom/header-content/1.latest/style/ticom.global.header.css"/> <link rel="stylesheet" type="text/css" href="https://www.ti.com/assets/js/@ticom/header-content/1.latest/style/ticom.global.header.css"/> </head> <body class="ti_aem ti_aem-page-videoPortal singleVideoPage trainingAndVideoBasePage basepage page basicpage" id="singleVideoPage-0f644e621b"> <!-- TI header --> <header id="tiResponsiveHeader" data-language="en-us" class="ti_p-responsiveHeader"> <script type="text/javascript" src="https://www.ti.com/assets/en/js/headerfooter/com.TI.header.js" charset="utf-8"></script> <script src="https://www.ti.com/assets/js/headerfooter/0.0.1/en/header.js"></script> <script nomodule src="https://www.ti.com/assets/js/@ticom/polyfills/1.1.2/polyfills.js"></script> <script type="module" src="https://www.ti.com/assets/js/@ticom/ui-components/3.4.24/ui-components.esm.js"></script> <script nomodule src="https://www.ti.com/assets/js/@ticom/ui-components/3.4.24/ui-components.js"></script> <script type="module" src="https://www.ti.com/assets/js/@ticom/header-components/2.latest/header-components.esm.js"></script> <script nomodule src="https://www.ti.com/assets/js/@ticom/header-components/2.latest/header-components.js"></script> <script type="module" src="https://www.ti.com/assets/js/@ticom/feature-components/2.2.57/feature-components.esm.js"></script> <script nomodule src="https://www.ti.com/assets/js/@ticom/feature-components/2.2.57/feature-components.js"></script> <script type="module" src="https://www.ti.com/assets/js/@ticom/selection-tool-components/1.latest/selection-tool-components.esm.js"></script> <script nomodule src="https://www.ti.com/assets/js/@ticom/selection-tool-components/1.latest/selection-tool-components.js"></script> <script type="text/javascript" src="https://www.ti.com/assets/en/js/headerfooter/cartpreview.js"></script> <script type="text/javascript" src="https://www.ti.com/assets/en/js/headerfooter/commonjsproperties.js"></script> </header> <!-- header end --> <main class="ti_aem-main"> <div class="ti_p-page-responsive"> <section> <div class="ti_p-row"> <div class="ti_p-col"> <!-- TI breadcrumb --> <nav class="ti_aem-breadcrumbs"> <div class="ti_p-breadcrumb ti_p-breadcrumb--video ti_p-layout-space-small" data-lid="breadcrumb"> <div class="ti_p-breadcrumb-section"> <a href="https://www.ti.com">Home</a> </div> <div class="ti_p-breadcrumb-section"> <a href="https://www.ti.com/video/library.html">Video library</a> </div> </div> </nav> </div> </div> </section> <section> <div class="ti_p-row"> <div class="ti_p-col"> <div class="ti_p-row"> <div class="ti_p-col-8 ti_p-col-phone-12"> <!-- start: video component section --> <div class="u-margin-bottom-6"> <!-- Start of Brightcove Player --> <div class="ti_videoS"> <div class="ti_player noMargins"> <video id="videoPlayerId" data-video-id="6365061860112" data-account="3816841626001" data-player="d0PyGHVSu" data-embed="default" data-application-id class="video-js" controls></video> </div> </div> <script src="//players.brightcove.net/3816841626001/d0PyGHVSu_default/index.min.js"></script> </div> <!-- end: video component section --> <!-- start: video player info section --> <div class="ti_aem-page-video-section-info"> <!-- start: video title --> <h3 class="ti_aem-video-title">Timer Practice — Compare and Hardware Frequency Divider</h3> <!-- end: video title --> <!-- start: time / date info --> <div class="ti_aem-video-dateDuration u-flex"> <span id="duration">00:05:50</span> <span class="u-color-grey3 u-padding-horizontal-2">|</span> <span id="date">22 NOV 2024</span> </div> <!-- end: time / date info --> </div> <!-- end: video player info section --> <!-- start: tab webcomponent and content --> <div class="ti_aem-page-video-section-tab u-margin-bottom-8"> <ti-tab-container hash-selection="true" data-lid="ti-tab-container"> <ti-tab-panel tab-id="tab-1" tab-title="About" data-lid="ti-tab-container" data-navtitle="About"> <!-- start: about --> <section id="description" class="ti_aem-page-video-section-info-about"> <ti-view-more> <!-- start: rich text content --> <div class="u-lastchild-nospace"><p>The MSPM0 MCU timer's comparison feature detects the edges of a pulse and automatically records the number of edges, generating interrupts when a specified number is reached. This example will use PA21 to produce a square wave signal with a variable frequency duty cycle of 50%. The edge of the square wave signal is acquired by PA18 with the square wave signal frequency as the comparison value, resulting in a comparison interruption of the cycle.</p> </div> <!-- end: rich text content --> </ti-view-more> </section> <!-- end: about --> <!-- start: presenters --> <section class="u-margin-bottom-16" id="presenterSection"> </section> <!-- end: presenters --> <!-- start: resources --> <section class="ti_aem-page-video-section-info-resources"> <h4 class="u-margin-bottom-4">Resources</h4> <ul id="resourceList" class="u-list-unstyled u-divide-y u-margin-bottom-0 mod-no-top-line"> <li><a href="https://www.ti.com/tool/LP-MSPM0L1306" data-lid="resources-Learn more about LP-MSPM0L1306" data-navtitle="view-resource"> <ti-svg-icon icon-set="objects" appearance="secondary" size="s" class="u-margin-right-2">arrow-right</ti-svg-icon> Learn more about LP-MSPM0L1306</a></li> <li><a href="https://www.ti.com/tool/MSPM0-SDK" data-lid="resources-Learn more about the MSPM0 software development kit" data-navtitle="view-resource"> <ti-svg-icon icon-set="objects" appearance="secondary" size="s" class="u-margin-right-2">arrow-right</ti-svg-icon> Learn more about the MSPM0 software development kit</a></li> </ul> </section> <!-- end: resources --> </ti-tab-panel> <ti-tab-panel id="transcript-tab" tab-id="transcript-tab" tab-title="Transcript" data-lid="ti-tab-container" data-navtitle="Transcript"> <section id="transcript" class="ti_p-layout-space-small"> <!-- div for transcript text which is displayed with AJAX call from 3play plugin --> <div id='3p-plugin-target' class='p3sdk-target'></div> <script type="text/javascript"> if (!window["3pLangString"]) { window["3pLangString"] = "languages"; } </script> <script type="application/ld+json"> {"@context":"https://schema.org","@type":"VideoObject","name":"Timer Practice \u2014 Compare and Hardware Frequency Divider","description":"This video demonstrates how to use the compare feature of the Timer on MSPM0L1306.","uploadDate":"2024-11-22T13:56:06.262-06:00","thumbnailUrl":"https://www.ti.com/content/dam/videos/external-videos/en-us/11/3816841626001/timer-practice-compare-hardware-frequency-divider.mp4/jcr:content/renditions/brc_thumbnail.png","embedUrl":"//players.brightcove.net/3816841626001/d0PyGHVSu_default/index.html?videoId=6365061860112"} </script> <script src='/etc.clientlibs/ti/clientlibs/resources/js/video-training/transcript.js' type='text/javascript'></script> </section> </ti-tab-panel> </ti-tab-container> </div> <!-- end: tab webcomponent and content --> </div> <div class="ti_p-col-4 ti_p-col-phone-12"> <!-- empty column if is a single video page --> <!-- start: video series playlist --> </div> </div> </div> </div> </section> </div> <!-- start: light grey browse footer --> <div class="u-clear-footer-space u-bgColor-grey1 u-hide-only-on-phone"> <section class="ti_p-page-responsive u-padding-top-16 u-padding-bottom-12"> <div class="ti_p-row u-margin-bottom-4"> <div class="ti_p-col-6"> <h2 class="u-margin-bottom-4">Browse videos</h2> <div class="u-margin-bottom-4"> <!-- Coveo search box --> <div id="searchboxvideo" data-di-unmask-field="" data-translate="Search our video library"> <div class="ti_aem-videoPortal-video-search u-flex mod-column-only-on-phone"> <div class="coveo-search-section u-flex-item mod-item-grow"> <ti-coveo-search-box search-box-id="videoSearchBox" search-interface-id="videoSearch" redirect-url="//{0}/sitesearch/{1}/docs/universalsearch.tsp?langPref={2}&preFilter=videos_Video,Video%20series"></ti-coveo-search-box> </div> <div class="u-flex-item u-margin-left-6"></div> <div class="u-flex-item u-margin-vertical-2" id="searchCTA"> <a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=latestVideo#f:videos=[Video,Video%20series]" data-lid="recentlyuploaded-view-all" data-navtitle="watch-video" class="u-padding-vertical-2">View all videos</a> </div> </div> </div> <script type="text/javascript" src="https://www.ti.com/assets/en/js/homepage/jquery-3.5.1.min.js"></script> <script src="/etc.clientlibs/ti/components/video-training/search/clientlib.min.js"></script> <script> window.addEventListener('load', function () { let translate = document.querySelector('#searchboxvideo').getAttribute('data-translate'); document.getElementById('videoSearchBox').shadowRoot.querySelector('atomic-focus-detector input').placeholder = translate; }); </script> </div> </div> </div> <div class="ti_p-row"> <div class="ti_p-col"> <div class="ti-aem-BrowseVideoCategories-view-Allvideo-link u-hidden"> <a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=latestVideo#f:videos=[Video,Video%20series]" data-lid="recentlyuploaded-view-all" data-navtitle="watch-video">View all videos</a> </div> <div class="ti_aem-videoPortal-browseCategories-list"> <div class="ti_p-row"> <div class="ti_p-col-9 ti_p-col-phone-12"> <h5>Products</h5> <ul class="u-list-unstyled u-columnCount-3"> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=products_Amplifiers;videos_Video,Video%20series" data-lid="browsevideos-Amplifiers" data-navtitle="learn-more">Amplifiers</a></li> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=products_Audio;videos_Video,Video%20series" data-lid="browsevideos-Audio" data-navtitle="learn-more">Audio</a></li> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=products_Clocks%20%26%20timing;videos_Video,Video%20series" data-lid="browsevideos-Clocks & timing" data-navtitle="learn-more">Clocks & timing</a></li> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=products_DLP%20products;videos_Video,Video%20series" data-lid="browsevideos-DLP products" data-navtitle="learn-more">DLP products</a></li> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=products_Data%20converters;videos_Video,Video%20series" data-lid="browsevideos-Data converters" data-navtitle="learn-more">Data converters</a></li> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=products_Die%20%26%20wafer%20services;videos_Video,Video%20series" data-lid="browsevideos-Die & wafer services" data-navtitle="learn-more">Die & wafer services</a></li> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=products_Interface;videos_Video,Video%20series" data-lid="browsevideos-Interface" data-navtitle="learn-more">Interface</a></li> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=products_Isolation;videos_Video,Video%20series" data-lid="browsevideos-Isolation" data-navtitle="learn-more">Isolation</a></li> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=products_Logic%20%26%20voltage%20translation;videos_Video,Video%20series" data-lid="browsevideos-Logic & voltage translation" data-navtitle="learn-more">Logic & voltage translation</a></li> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=products_Microcontrollers%20%28MCUs%29%20%26%20processors;videos_Video,Video%20series" data-lid="browsevideos-Microcontrollers (MCUs) & processors" data-navtitle="learn-more">Microcontrollers (MCUs) & processors</a></li> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=products_Motor%20drivers;videos_Video,Video%20series" data-lid="browsevideos-Motor drivers" data-navtitle="learn-more">Motor drivers</a></li> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=products_Power%20management;videos_Video,Video%20series" data-lid="browsevideos-Power management" data-navtitle="learn-more">Power management</a></li> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=products_RF%20%26%20microwave;videos_Video,Video%20series" data-lid="browsevideos-RF & microwave" data-navtitle="learn-more">RF & microwave</a></li> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=products_Sensors;videos_Video,Video%20series" data-lid="browsevideos-Sensors" data-navtitle="learn-more">Sensors</a></li> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=products_Switches%20%26%20multiplexers;videos_Video,Video%20series" data-lid="browsevideos-Switches & multiplexers" data-navtitle="learn-more">Switches & multiplexers</a></li> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=products_Wireless%20connectivity;videos_Video,Video%20series" data-lid="browsevideos-Wireless connectivity" data-navtitle="learn-more">Wireless connectivity</a></li> </ul> </div> <div class="ti_p-col-3 ti_p-col-phone-6"> <h5>Applications</h5> <ul class="u-list-unstyled"> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=applications_Automotive;videos_Video,Video%20series" data-lid="browsevideos-Automotive" data-navtitle="learn-more">Automotive</a></li> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=applications_Communications%20equipment;videos_Video,Video%20series" data-lid="browsevideos-Communications equipment" data-navtitle="learn-more">Communications equipment</a></li> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=applications_Enterprise%20systems;videos_Video,Video%20series" data-lid="browsevideos-Enterprise systems" data-navtitle="learn-more">Enterprise systems</a></li> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=applications_Industrial;videos_Video,Video%20series" data-lid="browsevideos-Industrial" data-navtitle="learn-more">Industrial</a></li> <li><a href="https://www.ti.com/sitesearch/en-us/docs/universalsearch.tsp?langPref=en-US&searchTerm=%00&preFilter=applications_Personal%20electronics;videos_Video,Video%20series" data-lid="browsevideos-Personal electronics" data-navtitle="learn-more">Personal electronics</a></li> </ul> </div> </div> </div> </div> </div> <div class="ti_p-row"> <div class="ti_p-col"> <!-- AEM layout container --> <div class="root responsivegrid ti_aem-productOverview-container"> <div class="aem-Grid aem-Grid--12 aem-Grid--default--12 "> </div> </div> </div> </div> </section> </div> <!-- end: light grey browse footer --> </main> <!-- TI footer --> <div id="tiFooter"></div> <script type="text/javascript" src="https://www.ti.com/assets/js/@ticom/header-content/1.latest/en/js/footer.js"></script> <script type="text/javascript" src="https://www.ti.com/assets/en/js/homepage/sitesearch-header-min.js"></script> </body> </html>