<?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>P-Series中的主题 Re: Accessing timer registers in P4080DS</title>
    <link>https://community.nxp.com/t5/P-Series/Accessing-timer-registers-in-P4080DS/m-p/469912#M2800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your processor core timer facilities are fully described in EREF_RM, Chapter 6. As of reference code, see how it is &lt;/P&gt;&lt;P&gt;implemented in Linux kernel, function get_tb​():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://lxr.free-electrons.com/source/arch/powerpc/include/asm/time.h?v=3.12" title="http://lxr.free-electrons.com/source/arch/powerpc/include/asm/time.h?v=3.12"&gt;Linux/arch/powerpc/include/asm/time.h - Linux Cross Reference - Free Electrons&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Platon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Mar 2016 10:36:11 GMT</pubDate>
    <dc:creator>bpe</dc:creator>
    <dc:date>2016-03-11T10:36:11Z</dc:date>
    <item>
      <title>Accessing timer registers in P4080DS</title>
      <link>https://community.nxp.com/t5/P-Series/Accessing-timer-registers-in-P4080DS/m-p/469911#M2799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am trying to use a timer for profiling my bare-metal code on P4080DS but I couldn't find much info on it.&lt;/P&gt;&lt;P&gt;The e500mc Core reference manual says that there are timers like TB which can be configured and used. However, it does not have much info on using them. There is a small code snippet but it is in assembly language: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12825319_1300544763295660_617552403_n.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/1129iE93E5A0789459B0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="12825319_1300544763295660_617552403_n.jpg" alt="12825319_1300544763295660_617552403_n.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be helpful if I can get either of the two:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) A code snippet (in C) which shows how to configure and read/write the timer registers.&lt;/P&gt;&lt;P&gt;2) A code snippet on how to embed the above assembly code in my C code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;- Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 09:46:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Accessing-timer-registers-in-P4080DS/m-p/469911#M2799</guid>
      <dc:creator>rahul011189</dc:creator>
      <dc:date>2016-03-11T09:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing timer registers in P4080DS</title>
      <link>https://community.nxp.com/t5/P-Series/Accessing-timer-registers-in-P4080DS/m-p/469912#M2800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your processor core timer facilities are fully described in EREF_RM, Chapter 6. As of reference code, see how it is &lt;/P&gt;&lt;P&gt;implemented in Linux kernel, function get_tb​():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://lxr.free-electrons.com/source/arch/powerpc/include/asm/time.h?v=3.12" title="http://lxr.free-electrons.com/source/arch/powerpc/include/asm/time.h?v=3.12"&gt;Linux/arch/powerpc/include/asm/time.h - Linux Cross Reference - Free Electrons&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Platon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 10:36:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Accessing-timer-registers-in-P4080DS/m-p/469912#M2800</guid>
      <dc:creator>bpe</dc:creator>
      <dc:date>2016-03-11T10:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing timer registers in P4080DS</title>
      <link>https://community.nxp.com/t5/P-Series/Accessing-timer-registers-in-P4080DS/m-p/469913#M2801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Platon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In get_tb(), the value seems to be read from the location&amp;nbsp; 0x3dd:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; asm volatile(&lt;EM&gt;"mfspr %0, 0x3dd"&lt;/EM&gt; : &lt;EM&gt;"=r"&lt;/EM&gt; (tbl));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where is it specified that TBL register is mapped to 0x3dd? The programmers manual does say that TBL is SPR268 but I am unable to locate the mapping to 0x3dd.&lt;/P&gt;&lt;P&gt;It will be really helpful if you can point me to the a document which clarifies this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 15:22:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Accessing-timer-registers-in-P4080DS/m-p/469913#M2801</guid>
      <dc:creator>rahul011189</dc:creator>
      <dc:date>2016-03-11T15:22:03Z</dc:date>
    </item>
  </channel>
</rss>

