<?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>MPC5xxxのトピックRe: eTPU  question about RPM.</title>
    <link>https://community.nxp.com/t5/MPC5xxx/eTPU-question-about-RPM/m-p/1713046#M24167</link>
    <description>&lt;P&gt;With eTPU2 it can be 1:1 ratio, but eTPU uses 1:2 ratio.&lt;/P&gt;
&lt;P&gt;Example code apparently uses backward compatible code&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davidtosenovjan_1-1693299468195.png" style="width: 652px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/238618i646C74F356AAE5BC/image-dimensions/652x250?v=v2" width="652" height="250" role="button" title="davidtosenovjan_1-1693299468195.png" alt="davidtosenovjan_1-1693299468195.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davidtosenovjan_0-1693299426894.png" style="width: 611px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/238617i065B25BCBE871EBB/image-dimensions/611x357?v=v2" width="611" height="357" role="button" title="davidtosenovjan_0-1693299426894.png" alt="davidtosenovjan_0-1693299426894.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davidtosenovjan_2-1693299716552.png" style="width: 592px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/238621i13304F1F80ED293F/image-dimensions/592x537?v=v2" width="592" height="537" role="button" title="davidtosenovjan_2-1693299716552.png" alt="davidtosenovjan_2-1693299716552.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Aug 2023 09:02:16 GMT</pubDate>
    <dc:creator>davidtosenovjan</dc:creator>
    <dc:date>2023-08-29T09:02:16Z</dc:date>
    <item>
      <title>eTPU  question about RPM.</title>
      <link>https://community.nxp.com/t5/MPC5xxx/eTPU-question-about-RPM/m-p/1712947#M24164</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The S32 DS uses the engine control eTPU of the MPC5777.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I set it up as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;#define SYS_FREQ_HZ 160E6&lt;BR /&gt;#define TCR1_FREQ_HZ (SYS_FREQ_HZ/2)&lt;BR /&gt;#define TEETH_TILL_GAP 58&lt;BR /&gt;#define TEETH_IN_GAP 2&lt;BR /&gt;#define TEETH_PER_CYCLE 120&lt;BR /&gt;#define TCR2_TICKS_PER_TOOTH 600 //&amp;nbsp; 600 1000&lt;BR /&gt;#define TCR2_TICKS_PER_CYCLE ((TEETH_PER_CYCLE)*(TCR2_TICKS_PER_TOOTH))&lt;BR /&gt;#define MSEC2TCR1(x) (TCR1_FREQ_HZ/1E3*(x)/1E0)&lt;BR /&gt;#define USEC2TCR1(x) (TCR1_FREQ_HZ/1E3*(x)/1E3)&lt;BR /&gt;#define NSEC2TCR1(x) (TCR1_FREQ_HZ/1E3*(x)/1E6)&lt;BR /&gt;#define DEG2TCR2(x) ((x)*TCR2_TICKS_PER_CYCLE/720)&amp;nbsp;&lt;BR /&gt;#define UFRACT24(x) ((x)*0xFFFFFF)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I put the RPM in 3000 and made it work. I understand that RPM is the same as crank rotation for 1 minute, but the crank frequency came out to be about 25Hz.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;RPM = 25Hz * 60 = 1500&amp;nbsp;&lt;SPAN&gt;Half of what RPM put in.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How am I supposed to understand?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;#define TCR1_FREQ_HZ (SYS_FREQ_HZ/2)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't know why this is TCR1 half of SYS. In the AN4908 example, it was a one-to-one ratio.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't know a lot because I received the completed project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 07:53:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/eTPU-question-about-RPM/m-p/1712947#M24164</guid>
      <dc:creator>DooDo</dc:creator>
      <dc:date>2023-08-29T07:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: eTPU  question about RPM.</title>
      <link>https://community.nxp.com/t5/MPC5xxx/eTPU-question-about-RPM/m-p/1713046#M24167</link>
      <description>&lt;P&gt;With eTPU2 it can be 1:1 ratio, but eTPU uses 1:2 ratio.&lt;/P&gt;
&lt;P&gt;Example code apparently uses backward compatible code&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davidtosenovjan_1-1693299468195.png" style="width: 652px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/238618i646C74F356AAE5BC/image-dimensions/652x250?v=v2" width="652" height="250" role="button" title="davidtosenovjan_1-1693299468195.png" alt="davidtosenovjan_1-1693299468195.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davidtosenovjan_0-1693299426894.png" style="width: 611px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/238617i065B25BCBE871EBB/image-dimensions/611x357?v=v2" width="611" height="357" role="button" title="davidtosenovjan_0-1693299426894.png" alt="davidtosenovjan_0-1693299426894.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davidtosenovjan_2-1693299716552.png" style="width: 592px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/238621i13304F1F80ED293F/image-dimensions/592x537?v=v2" width="592" height="537" role="button" title="davidtosenovjan_2-1693299716552.png" alt="davidtosenovjan_2-1693299716552.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 09:02:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/eTPU-question-about-RPM/m-p/1713046#M24167</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2023-08-29T09:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: eTPU  question about RPM.</title>
      <link>https://community.nxp.com/t5/MPC5xxx/eTPU-question-about-RPM/m-p/1713697#M24171</link>
      <description>&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I set the RPM, but the RPM comes out in half. What's wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;#define RPM2TP(x) (TCR1_FREQ_HZ/(x)*60/(TEETH_PER_CYCLE/2))&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I put the value through RPM2TP, is the above definition wrong?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 05:01:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/eTPU-question-about-RPM/m-p/1713697#M24171</guid>
      <dc:creator>DooDo</dc:creator>
      <dc:date>2023-08-30T05:01:34Z</dc:date>
    </item>
  </channel>
</rss>

