<?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: Initialising SPI in MC9S12GA240 in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Initialising-SPI-in-MC9S12GA240/m-p/828523#M15948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harshal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added my comments and examples to your second question&amp;nbsp;&lt;A href="https://community.nxp.com/thread/486095"&gt;Interfacing 25AA512 EEPROM to MC9S12GA240 using SPI&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unfortunately, S12G MCUs have no MODRR register. The Signals and Priorities for Port J can be found in "&lt;/SPAN&gt;Table 2-4. Signals and Priorities" in the chapter "2.3 PIM Routing - Functional description" &lt;SPAN&gt;in the &lt;A href="https://www.nxp.com/docs/en/data-sheet/MC9S12GRMV1.pdf"&gt;reference manual&lt;/A&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;The signals available on each&amp;nbsp;pin of port&amp;nbsp;J can be found in the chapter&amp;nbsp;2.3.11 Pins PJ7-0 in the reference manual.&lt;/P&gt;&lt;P&gt;Also, you can look at the chapter 21.3.2.1 SPI Control Register 1 (SPICR1) in the reference manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached the code for MC33972 which was created for the S12XE (S12XE and S12G have the same SPI module).&lt;/P&gt;&lt;P&gt;The initialization of SPI you can find in the examples. For more details&amp;nbsp;see&amp;nbsp;Chapter 21 Serial Peripheral Interface (S12SPIV5) in the reference manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2018 11:54:41 GMT</pubDate>
    <dc:creator>dianabatrlova</dc:creator>
    <dc:date>2018-10-10T11:54:41Z</dc:date>
    <item>
      <title>Initialising SPI in MC9S12GA240</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Initialising-SPI-in-MC9S12GA240/m-p/828522#M15947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" style="color: #000000; font-weight: normal; font-size: 13.696px;"&gt;&lt;DIV class="" style="margin: 16px 0px;"&gt;&lt;DIV class=""&gt;&lt;DIV&gt;Like MODRR register in MC9S12XEP100, is there any routing register to make that port (Say PJ0- PJ3 for SPI1) dedicatedly for SPI?&lt;/DIV&gt;&lt;DIV&gt;What are the steps to initialize the SPI1 in MC9S12GA240?&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2018 15:06:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Initialising-SPI-in-MC9S12GA240/m-p/828522#M15947</guid>
      <dc:creator>harshal_pawar</dc:creator>
      <dc:date>2018-10-06T15:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Initialising SPI in MC9S12GA240</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Initialising-SPI-in-MC9S12GA240/m-p/828523#M15948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harshal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added my comments and examples to your second question&amp;nbsp;&lt;A href="https://community.nxp.com/thread/486095"&gt;Interfacing 25AA512 EEPROM to MC9S12GA240 using SPI&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unfortunately, S12G MCUs have no MODRR register. The Signals and Priorities for Port J can be found in "&lt;/SPAN&gt;Table 2-4. Signals and Priorities" in the chapter "2.3 PIM Routing - Functional description" &lt;SPAN&gt;in the &lt;A href="https://www.nxp.com/docs/en/data-sheet/MC9S12GRMV1.pdf"&gt;reference manual&lt;/A&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;The signals available on each&amp;nbsp;pin of port&amp;nbsp;J can be found in the chapter&amp;nbsp;2.3.11 Pins PJ7-0 in the reference manual.&lt;/P&gt;&lt;P&gt;Also, you can look at the chapter 21.3.2.1 SPI Control Register 1 (SPICR1) in the reference manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached the code for MC33972 which was created for the S12XE (S12XE and S12G have the same SPI module).&lt;/P&gt;&lt;P&gt;The initialization of SPI you can find in the examples. For more details&amp;nbsp;see&amp;nbsp;Chapter 21 Serial Peripheral Interface (S12SPIV5) in the reference manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 11:54:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Initialising-SPI-in-MC9S12GA240/m-p/828523#M15948</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2018-10-10T11:54:41Z</dc:date>
    </item>
  </channel>
</rss>

