<?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: SPI Microwire mode in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Microwire-mode/m-p/538002#M11587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how you count the 24 bits you want to transmit, but if this is the sum of the 8-bit control word and a 16-bit data filed, then the answer is yes, it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data size field (DSS) in CR0 determines the width of the data field only. The control word is always 8 bits wide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you set DSS to 16 bits, then writing any value to the transmit FIFO will trigger a complete microwire frame transfer: The LSB of the data written to the TX FIFO is sent as the control word, followed by a dummy clock cycle, followed by 16 clock cycles used to read the data field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While SSEL is pulsed low by hardware for the duration of the sequence described above, you are free to drive your own GPIO version of a slave select if you like.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jul 2016 19:12:55 GMT</pubDate>
    <dc:creator>rolfmeeser</dc:creator>
    <dc:date>2016-07-19T19:12:55Z</dc:date>
    <item>
      <title>SPI Microwire mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Microwire-mode/m-p/538001#M11586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm working with the LPCXpresso&amp;nbsp; LPC1115 and having problems with the SPI interface. The question is quite simple.&lt;/P&gt;&lt;P&gt;How is the Microwire interface used? From the manual UM10398 it should be possible to make a bit sequence looking like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="155190_155190.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121929i07E7387CE2A9D542/image-size/large?v=v2&amp;amp;px=999" role="button" title="155190_155190.png" alt="155190_155190.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34428i95AB3CCC8A60FE89/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like to transmit 24 bit. CR0 is the register where I have to select that I'm using Microwire. But I also have to select the data size, which can be up to 16 bits. Make sense. But in this Microwire interface a 8-bit control byte is defined. How do I write the control byte?&lt;/P&gt;&lt;P&gt;I can make the code so the CS is controlled manually and just use regular SPI mode, no problem. But it would be nice if the Microwire functionality worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 10:29:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Microwire-mode/m-p/538001#M11586</guid>
      <dc:creator>henrikebbekaer</dc:creator>
      <dc:date>2016-07-05T10:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Microwire mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Microwire-mode/m-p/538002#M11587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how you count the 24 bits you want to transmit, but if this is the sum of the 8-bit control word and a 16-bit data filed, then the answer is yes, it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data size field (DSS) in CR0 determines the width of the data field only. The control word is always 8 bits wide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you set DSS to 16 bits, then writing any value to the transmit FIFO will trigger a complete microwire frame transfer: The LSB of the data written to the TX FIFO is sent as the control word, followed by a dummy clock cycle, followed by 16 clock cycles used to read the data field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While SSEL is pulsed low by hardware for the duration of the sequence described above, you are free to drive your own GPIO version of a slave select if you like.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 19:12:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPI-Microwire-mode/m-p/538002#M11587</guid>
      <dc:creator>rolfmeeser</dc:creator>
      <dc:date>2016-07-19T19:12:55Z</dc:date>
    </item>
  </channel>
</rss>

