<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Header documentation for SDK function TPM_SetupDualEdgeCapture in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/Header-documentation-for-SDK-function-TPM-SetupDualEdgeCapture/m-p/859741#M1241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I should have said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using the M4 core on the iMX7ulp CPU although I am sure the TPM module is common to many of your SOCs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TPM driver version is given in fsl_tpm.h as:&lt;/P&gt;&lt;P&gt;#define FSL_TPM_DRIVER_VERSION (MAKE_VERSION(2, 0, 2)) /*!&amp;lt; Version 2.0.2 */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SDK has been installed on my machine into a folder called:&lt;/P&gt;&lt;P&gt;SDK_2.2_EVK-MCIMX7ULP_M4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any further info you need?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Mar 2019 09:26:47 GMT</pubDate>
    <dc:creator>martinhowell1</dc:creator>
    <dc:date>2019-03-29T09:26:47Z</dc:date>
    <item>
      <title>Header documentation for SDK function TPM_SetupDualEdgeCapture</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Header-documentation-for-SDK-function-TPM-SetupDualEdgeCapture/m-p/859739#M1239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After a lot of debugging and peering at registers I found an incorrect and/or misleading comment in fsl_tpm.h for the function&amp;nbsp;TPM_SetupDualEdgeCapture()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It reads:&lt;/P&gt;&lt;P&gt;/*!&lt;BR /&gt; * @brief Configures the dual edge capture mode of the TPM.&lt;BR /&gt; *&lt;BR /&gt; * This function allows to measure a pulse width of the signal on the input of channel of a&lt;BR /&gt; * channel pair. The filter function is disabled if the filterVal argument passed is zero.&lt;BR /&gt; *&lt;BR /&gt; * @param base TPM peripheral base address&lt;BR /&gt; * @param chnlPairNumber The TPM channel pair number; options are 0, 1, 2, 3&lt;BR /&gt; * @param edgeParam Sets up the dual edge capture function&lt;BR /&gt; * @param filterValue Filter value, specify 0 to disable filter.&lt;BR /&gt; */&lt;BR /&gt;void TPM_SetupDualEdgeCapture(TPM_Type *base,&lt;BR /&gt; tpm_chnl_t chnlPairNumber,&lt;BR /&gt; const tpm_dual_edge_capture_param_t *edgeParam,&lt;BR /&gt; uint32_t filterValue);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to combine channels 2 and 3 so passed&amp;nbsp;kTPM_Chnl_2 to the chnlPairNumber. I should have passed&amp;nbsp;kTPM_Chnl_1!! The comment should probably read&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/*!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* @brief Configures the dual edge capture mode of the TPM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* This function allows to measure a pulse width of the signal on the input of channel of a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* channel pair. The filter function is disabled if the filterVal argument passed is zero.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* @param base TPM peripheral base address&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* @param chnlPairNumber The TPM channel pair number; options are 0 to combine ch 0 and 1, 1 to combine ch 2 and 3, 2 to combine ch 4 and 5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* @param edgeParam Sets up the dual edge capture function&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* @param filterValue Filter value, specify 0 to disable filter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Probably we shouldnt be using tpm_chnl_t for this parameter but define another type tpm_combine_chnl_t instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2019 15:52:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Header-documentation-for-SDK-function-TPM-SetupDualEdgeCapture/m-p/859739#M1239</guid>
      <dc:creator>martinhowell1</dc:creator>
      <dc:date>2019-03-28T15:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Header documentation for SDK function TPM_SetupDualEdgeCapture</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Header-documentation-for-SDK-function-TPM-SetupDualEdgeCapture/m-p/859740#M1240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="327969" data-username="martinhowell1" href="https://community.nxp.com/people/martinhowell1"&gt;Martin Howell&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please tell me what the kinetis chip you are using?&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please also let me know your SDK code name.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Waiting for your updated information.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2019 05:40:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Header-documentation-for-SDK-function-TPM-SetupDualEdgeCapture/m-p/859740#M1240</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-03-29T05:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Header documentation for SDK function TPM_SetupDualEdgeCapture</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Header-documentation-for-SDK-function-TPM-SetupDualEdgeCapture/m-p/859741#M1241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I should have said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using the M4 core on the iMX7ulp CPU although I am sure the TPM module is common to many of your SOCs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TPM driver version is given in fsl_tpm.h as:&lt;/P&gt;&lt;P&gt;#define FSL_TPM_DRIVER_VERSION (MAKE_VERSION(2, 0, 2)) /*!&amp;lt; Version 2.0.2 */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SDK has been installed on my machine into a folder called:&lt;/P&gt;&lt;P&gt;SDK_2.2_EVK-MCIMX7ULP_M4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any further info you need?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2019 09:26:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Header-documentation-for-SDK-function-TPM-SetupDualEdgeCapture/m-p/859741#M1241</guid>
      <dc:creator>martinhowell1</dc:creator>
      <dc:date>2019-03-29T09:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Header documentation for SDK function TPM_SetupDualEdgeCapture</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Header-documentation-for-SDK-function-TPM-SetupDualEdgeCapture/m-p/859742#M1242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin Howell,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks a lot for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp; About the IMX7 problem, it's better to create the question in this area:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/community/imx/content" title="https://community.nxp.com/community/imx/content"&gt;i.MX Processors&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am just the kinetis and the I.MXRT engineer.&lt;/P&gt;&lt;P&gt;&amp;nbsp; So, please create a new question in the new area, or the next time you need to add the chip part number in the question title.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2019 10:47:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Header-documentation-for-SDK-function-TPM-SetupDualEdgeCapture/m-p/859742#M1242</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-04-01T10:47:10Z</dc:date>
    </item>
  </channel>
</rss>

