<?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 #define MODRR0_S0L0RR_MASK   7U in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/define-MODRR0-S0L0RR-MASK-7U/m-p/605387#M13109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; The following code are in&lt;STRONG&gt; "mc9s12zvmc128.h" file .I can't find the define of 7U,0U,8U and so on .I don't know the meaning of it. &amp;nbsp; Who can give me a little hint ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define MODRR0_S0L0RR_MASK &amp;nbsp; 7U&lt;BR /&gt;#define MODRR0_S0L0RR_BITNUM &amp;nbsp; 0U&lt;BR /&gt;#define MODRR0_SCI1RR_MASK &amp;nbsp; 8U&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2016 07:01:10 GMT</pubDate>
    <dc:creator>sufree</dc:creator>
    <dc:date>2016-09-09T07:01:10Z</dc:date>
    <item>
      <title>#define MODRR0_S0L0RR_MASK   7U</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/define-MODRR0-S0L0RR-MASK-7U/m-p/605387#M13109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; The following code are in&lt;STRONG&gt; "mc9s12zvmc128.h" file .I can't find the define of 7U,0U,8U and so on .I don't know the meaning of it. &amp;nbsp; Who can give me a little hint ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define MODRR0_S0L0RR_MASK &amp;nbsp; 7U&lt;BR /&gt;#define MODRR0_S0L0RR_BITNUM &amp;nbsp; 0U&lt;BR /&gt;#define MODRR0_SCI1RR_MASK &amp;nbsp; 8U&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 07:01:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/define-MODRR0-S0L0RR-MASK-7U/m-p/605387#M13109</guid>
      <dc:creator>sufree</dc:creator>
      <dc:date>2016-09-09T07:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: #define MODRR0_S0L0RR_MASK   7U</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/define-MODRR0-S0L0RR-MASK-7U/m-p/605388#M13110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &amp;amp;#27468; &amp;amp;#33487;,&lt;/P&gt;&lt;P&gt;Please see MODRR0 Routing Register description in chapter 2.3.2 PIM Registers 0x0200-0x020F in RM.&lt;/P&gt;&lt;P&gt;The MODRR0_S0L0RR_MASK and MODRR0_SCI1RR_MASK are just masks.&lt;/P&gt;&lt;P&gt;So, if you calculate MODRR0 &amp;amp; MODRR0_SCI1RR_MASK it will return SCI1 routing setting to you, despite on other bits in MODRR0 register.&lt;/P&gt;&lt;P&gt;The SCI1 routing options are presented by just one bit - SCI1RR&lt;/P&gt;&lt;P&gt;The SCI0 routing options are presented by three bits - S0L0RR[2..0]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The default SCI0 routing option is 0b000 = 0x00 = 0 (MODRR0_S0L0RR_BITNUM). In that case the SCI0 is internally connected to LINPHY0/HVPHY0.&lt;/P&gt;&lt;P&gt;See Table 2-10. Preferred Interface Configurations for more details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: The MODRR0 register might be written just once in normal mode. So, all settings have to be managed by singe write into this register. For example:&lt;/P&gt;&lt;P&gt;Correct:&lt;/P&gt;&lt;P&gt;MODRR0=0x80; //SCI0 internal, SCI1 to PS2,3, SPI0 to PS2..4, SPI0 SS0 at SP5&lt;/P&gt;&lt;P&gt;Wrong:&lt;/P&gt;&lt;P&gt;MODRR0_S0L0RR = 0x00; //SCI0 internal&lt;/P&gt;&lt;P&gt;MODRR0_ SCI1RR = 1; //SCI1 to PS2,3&lt;/P&gt;&lt;P&gt;MODRR0_SPI0RR = 0; //SPI0 to PS2..4&lt;/P&gt;&lt;P&gt;MODRR0_SPI0SSRR = 0; //SPI0 SS0 at SP5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Radek&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, 09 Sep 2016 08:33:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/define-MODRR0-S0L0RR-MASK-7U/m-p/605388#M13110</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2016-09-09T08:33:23Z</dc:date>
    </item>
  </channel>
</rss>

