<?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中的主题 Re: Sending 3 bytes over SPI without /SS getting high</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sending-3-bytes-over-SPI-without-SS-getting-high/m-p/139280#M2871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT size="2"&gt;Hello Niklas,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I presume you would be using&amp;nbsp;&lt;U&gt;parallel output&lt;/U&gt; shift registers such as 74HC595.&amp;nbsp; So MOSI would connect to pin 14 of the first device, and pin 9 would connect to pin 14 of the next device, etc.&amp;nbsp; The SPI clock signal would connect to pin 11 of all three devices.&amp;nbsp; You would then choose a&amp;nbsp;GPIO output to strobe pin 12 of all three devices.&amp;nbsp; MISO would not be used unless &lt;U&gt;parallel input&lt;/U&gt; shift registers were also present.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;In operation, you would simply send three bytes in succession, and then pulse the strobe signal to update the outputs.&amp;nbsp; For compatibility with these shift registers, the SPI master should be configured for either of the two following combinations:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;1.&amp;nbsp; CPHA=0 and CPOL=0, or&lt;BR /&gt;2.&amp;nbsp; CPHA=1 and CPOL=1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Regards,&lt;BR /&gt;Mac&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jun 2006 19:48:54 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2006-06-12T19:48:54Z</dc:date>
    <item>
      <title>Sending 3 bytes over SPI without /SS getting high</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sending-3-bytes-over-SPI-without-SS-getting-high/m-p/139279#M2870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As newbie to programming and S12 I have what might be a silly question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am going to use S12 to send 3 bytes of data to 3 daisy chained shift regs. What I want is this: when I initiate the transfer I would like /SS to go low, thereby selecting my slave device. Then I send 3 bytes and after that transfer is done, I would like /SS pin to go high and latch data from shiftregs to their output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The function I am looking for is exactly what I understand is possible to do if the transmission were only one byte.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One solution to this would be to disable the /SS pin from SPI and use it as GPIO. In that way I can have the function I want but it needs to be controlled by SW. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to send 3 bytes over SPI with /SS low during the whole transmission?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Greatful for all responses!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//Niklas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 19:13:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sending-3-bytes-over-SPI-without-SS-getting-high/m-p/139279#M2870</guid>
      <dc:creator>nikfo</dc:creator>
      <dc:date>2006-06-12T19:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sending 3 bytes over SPI without /SS getting high</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sending-3-bytes-over-SPI-without-SS-getting-high/m-p/139280#M2871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT size="2"&gt;Hello Niklas,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I presume you would be using&amp;nbsp;&lt;U&gt;parallel output&lt;/U&gt; shift registers such as 74HC595.&amp;nbsp; So MOSI would connect to pin 14 of the first device, and pin 9 would connect to pin 14 of the next device, etc.&amp;nbsp; The SPI clock signal would connect to pin 11 of all three devices.&amp;nbsp; You would then choose a&amp;nbsp;GPIO output to strobe pin 12 of all three devices.&amp;nbsp; MISO would not be used unless &lt;U&gt;parallel input&lt;/U&gt; shift registers were also present.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;In operation, you would simply send three bytes in succession, and then pulse the strobe signal to update the outputs.&amp;nbsp; For compatibility with these shift registers, the SPI master should be configured for either of the two following combinations:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;1.&amp;nbsp; CPHA=0 and CPOL=0, or&lt;BR /&gt;2.&amp;nbsp; CPHA=1 and CPOL=1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Regards,&lt;BR /&gt;Mac&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 19:48:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sending-3-bytes-over-SPI-without-SS-getting-high/m-p/139280#M2871</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-06-12T19:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sending 3 bytes over SPI without /SS getting high</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sending-3-bytes-over-SPI-without-SS-getting-high/m-p/139281#M2872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi bigmac!&lt;BR /&gt;That is exactly what I would like to do. BUT I rather not use a GPIO for strobing the registers. I would like to use the "built-in" /SS function for this. Is it possible?&lt;BR /&gt;The other method with GPIO is solved, this would just be an improvment.&lt;BR /&gt;&lt;BR /&gt;best regards&lt;BR /&gt;Niklas&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 20:49:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sending-3-bytes-over-SPI-without-SS-getting-high/m-p/139281#M2872</guid>
      <dc:creator>nikfo</dc:creator>
      <dc:date>2006-06-12T20:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sending 3 bytes over SPI without /SS getting high</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sending-3-bytes-over-SPI-without-SS-getting-high/m-p/139282#M2873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Niklas,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;FONT size="2"&gt;nikfo wrote:&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;BUT I rather not use a GPIO for strobing the registers. I would like to use the "built-in" /SS function for this. Is it possible?&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;No, I don't believe it is possible to use the built-in /SS hardware function.&amp;nbsp; However, you should be able to allocate the /SS pin as GPIO, and generate the strobe pulse to this pin within your firmware.&lt;/FONT&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT size="2"&gt;Regards,&lt;BR /&gt;Mac&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 21:14:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sending-3-bytes-over-SPI-without-SS-getting-high/m-p/139282#M2873</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-06-12T21:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sending 3 bytes over SPI without /SS getting high</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sending-3-bytes-over-SPI-without-SS-getting-high/m-p/139283#M2874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi bigmac!&lt;BR /&gt;So be it then! &lt;BR /&gt;As you said, I use the /SS pin as GPIO to control the strobing. I really hope it works that way since my custom card is designed with /SS as latch clock =).&lt;BR /&gt;&lt;BR /&gt;//Niklas&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 21:23:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sending-3-bytes-over-SPI-without-SS-getting-high/m-p/139283#M2874</guid>
      <dc:creator>nikfo</dc:creator>
      <dc:date>2006-06-12T21:23:38Z</dc:date>
    </item>
  </channel>
</rss>

