<?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 connecting 3-wire device to SPI in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/connecting-3-wire-device-to-SPI/m-p/139999#M2991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i want to connect 3-wire device (DS1302) to SPI bus, I have already connected serial EEPROM (25C640). Problem is, the DS1302 has merged MOSI and MISO pins into one pin. Is there a way to connect it to hw SPI port? I already wrote routines to connect it through bit-banged bus (on JK8, with no HW SPI port), but now i want to connect it to AB32 part with HW SPI port - and consuming additional 3 IO pins to do that (and part of flash memory to save routines) seems to be inefficient.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for zour help&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jarin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Jun 2006 19:33:29 GMT</pubDate>
    <dc:creator>jarin</dc:creator>
    <dc:date>2006-06-18T19:33:29Z</dc:date>
    <item>
      <title>connecting 3-wire device to SPI</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/connecting-3-wire-device-to-SPI/m-p/139999#M2991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i want to connect 3-wire device (DS1302) to SPI bus, I have already connected serial EEPROM (25C640). Problem is, the DS1302 has merged MOSI and MISO pins into one pin. Is there a way to connect it to hw SPI port? I already wrote routines to connect it through bit-banged bus (on JK8, with no HW SPI port), but now i want to connect it to AB32 part with HW SPI port - and consuming additional 3 IO pins to do that (and part of flash memory to save routines) seems to be inefficient.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for zour help&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jarin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Jun 2006 19:33:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/connecting-3-wire-device-to-SPI/m-p/139999#M2991</guid>
      <dc:creator>jarin</dc:creator>
      <dc:date>2006-06-18T19:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: connecting 3-wire device to SPI</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/connecting-3-wire-device-to-SPI/m-p/140000#M2992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Using Open Collector mode of the SPI, putting the two pins together and a pull-up on the new created bus is a solution.&lt;/P&gt;&lt;P&gt;You will need your master to have 0xFF in its buffer when it should receive data as it will also send data (you shift in and out !!!).&lt;/P&gt;&lt;P&gt;Using the 0xFF data will allow you to avoid data collision on the newly created bus.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Alban.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 20:21:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/connecting-3-wire-device-to-SPI/m-p/140000#M2992</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2006-06-19T20:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: connecting 3-wire device to SPI</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/connecting-3-wire-device-to-SPI/m-p/140001#M2993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Alban, thank you for your time and&amp;nbsp;response.&lt;/DIV&gt;&lt;DIV&gt;This should be possible, when only 3-wire device is hooked on SPI port. But my aim to connect both 3-wire device and "normal" SPI device&amp;nbsp;to one SPI port, if possible.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'll do some experiments on next&amp;nbsp;weekend and report results.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Jarin&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2006 01:35:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/connecting-3-wire-device-to-SPI/m-p/140001#M2993</guid>
      <dc:creator>jarin</dc:creator>
      <dc:date>2006-06-20T01:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: connecting 3-wire device to SPI</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/connecting-3-wire-device-to-SPI/m-p/140002#M2994</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 Jarin,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;To avoid external signal routing issues, the simplest approach may be to use the SPI hardware for the 4-wire slave device, and&amp;nbsp;your bit-banged routines for the 3-wire slave device.&amp;nbsp; The same pin furnctionality would be allocated to the software interface as the hardware interface, but using the alternate GPIO.&amp;nbsp; Of course, each slave device will need a separate SS connection, requiring a total of five pins for the two devices.&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>Tue, 20 Jun 2006 08:44:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/connecting-3-wire-device-to-SPI/m-p/140002#M2994</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-06-20T08:44:00Z</dc:date>
    </item>
  </channel>
</rss>

