<?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>S12 / MagniV MicrocontrollersのトピックMax SPI Slave Speed 9S12E64</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Max-SPI-Slave-Speed-9S12E64/m-p/172866#M5907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;I have a master/slave SPI setup between two microcontrollers, the master is a 68H11A1, the slave a 9S12E64's, we use a line called MODULE_ENn for slave select (SS_bar).&amp;nbsp; The master runs from an 8MHz external oscillator, so 1MHz SPI (SCK).&amp;nbsp; I currently have the 9S12 running from an 8Mhz crystal and communication is fine.&amp;nbsp; The issue that I am having is power, the slave board has a quiescent current around 370uA, this is too high.&lt;/P&gt;&lt;P&gt;The majority of the current comes from the me not being able to enter full STOP mode. &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I cannot enter STOP because I have to encounter the clock quality check upon wakeup from STOP. &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;The micro’s IRQ is tied to the MODULE_ENn (SS_bar) line, so it needs to wakeup when selected and grab the commands from the SPI data register quickly enough so that it doesn’t miss any. &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;There simply isn’t enough time to wakeup from a full STOP to receive the 1st byte because of the clock quality check, so I have to stay in PSEUDO-STOP mode.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt; There are 120uS from the IRQ (SS_bar) to the first 1MHz SCK.&lt;/P&gt;&lt;P&gt;My solution is to run the 9S12 at a lower speed, hopefully cutting the quiescent current by around half. &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;My question first question is, what is the min clock frequency that I can run a 9S12 in SPI slave mode and still be able to receive messages coming in at 1Mhz? &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I have seen the SPI specs for master mode, but my question is about slave.&lt;/P&gt;&lt;P&gt;Looking at the SPIV3 block diagram, I see that the SPI data register is dependent on both the shift and sample clocks. &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;How many core clocks are required after the data is shifted into the SPI data register (8th SCK tick) until the data is possible to be read?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jul 2008 04:30:11 GMT</pubDate>
    <dc:creator>ajacks504</dc:creator>
    <dc:date>2008-07-15T04:30:11Z</dc:date>
    <item>
      <title>Max SPI Slave Speed 9S12E64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Max-SPI-Slave-Speed-9S12E64/m-p/172866#M5907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;I have a master/slave SPI setup between two microcontrollers, the master is a 68H11A1, the slave a 9S12E64's, we use a line called MODULE_ENn for slave select (SS_bar).&amp;nbsp; The master runs from an 8MHz external oscillator, so 1MHz SPI (SCK).&amp;nbsp; I currently have the 9S12 running from an 8Mhz crystal and communication is fine.&amp;nbsp; The issue that I am having is power, the slave board has a quiescent current around 370uA, this is too high.&lt;/P&gt;&lt;P&gt;The majority of the current comes from the me not being able to enter full STOP mode. &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I cannot enter STOP because I have to encounter the clock quality check upon wakeup from STOP. &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;The micro’s IRQ is tied to the MODULE_ENn (SS_bar) line, so it needs to wakeup when selected and grab the commands from the SPI data register quickly enough so that it doesn’t miss any. &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;There simply isn’t enough time to wakeup from a full STOP to receive the 1st byte because of the clock quality check, so I have to stay in PSEUDO-STOP mode.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt; There are 120uS from the IRQ (SS_bar) to the first 1MHz SCK.&lt;/P&gt;&lt;P&gt;My solution is to run the 9S12 at a lower speed, hopefully cutting the quiescent current by around half. &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;My question first question is, what is the min clock frequency that I can run a 9S12 in SPI slave mode and still be able to receive messages coming in at 1Mhz? &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I have seen the SPI specs for master mode, but my question is about slave.&lt;/P&gt;&lt;P&gt;Looking at the SPIV3 block diagram, I see that the SPI data register is dependent on both the shift and sample clocks. &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;How many core clocks are required after the data is shifted into the SPI data register (8th SCK tick) until the data is possible to be read?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 04:30:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Max-SPI-Slave-Speed-9S12E64/m-p/172866#M5907</guid>
      <dc:creator>ajacks504</dc:creator>
      <dc:date>2008-07-15T04:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Max SPI Slave Speed 9S12E64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Max-SPI-Slave-Speed-9S12E64/m-p/172867#M5908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello Adam,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If the SPI master clock rate is 1MHz, it would seem that the minimum allowable bus frequency for the slave end would be 4MHz.&amp;nbsp; For operation with a lower bus frequency, the SPI clock rate would need to be reduced.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For SPI slave operation, the critical timing is likely to be that required to derive any return data in response to the incoming byte, and to&amp;nbsp;load the return byte value into the data register, all prior to the first clock edge of the next transfer, and possibly prior to the SS signal going low.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Mac&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 11:01:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Max-SPI-Slave-Speed-9S12E64/m-p/172867#M5908</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2008-07-15T11:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Max SPI Slave Speed 9S12E64</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Max-SPI-Slave-Speed-9S12E64/m-p/172868#M5909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks Mac,&lt;BR /&gt;&lt;BR /&gt;Yes, you are correct, the max SCK frequency for SPI is f_bus, I was pointed to this spec in the 9S12 data sheet by a Freescale apps guy.&amp;nbsp; Its in A5 (SPI Characteristics), table A-18.&lt;BR /&gt;&lt;BR /&gt;I'm my case I am already running from an external 8 MHz XTAL, so my bus clock is 4 MHz, this tells me that I can't run the part and successfully recieve SPI transmissions from the master with a 4 MHz XTAL, &lt;IMG alt=":smileysad:" class="emoticon emoticon-smileysad" id="smileysad" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-sad.gif" title="Smiley Sad" /&gt;&lt;BR /&gt;&lt;BR /&gt;I'm going to start looing into self clocking mode, maybe I will be able to pump up the PLL in time to get my f_bus up to recieve the byte.&amp;nbsp; There is 120us from SS to the first SPI byte in the system I am working with (there is no way to change it's SPI settings, legacy product).&lt;BR /&gt;&lt;BR /&gt;If only the **bleep** clock qualifier were capabale of being disabled like the the 68HC11!!! &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&amp;nbsp; I understand why its there, I just wish that with the right warnings, they would let the user disable it!&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 21:10:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Max-SPI-Slave-Speed-9S12E64/m-p/172868#M5909</guid>
      <dc:creator>ajacks504</dc:creator>
      <dc:date>2008-07-15T21:10:49Z</dc:date>
    </item>
  </channel>
</rss>

