<?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 How to change framesize correctly ? in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-change-framesize-correctly/m-p/302459#M661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in order to read data with SPI I have to read with 18 clocks(data sheet ADC). The default framesize is 1 byte. If I read 3 times the problem is a pause between each byte. This probably causes errors.&lt;/P&gt;&lt;P&gt;Here is the code I wrote so far:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;uint_32 frame = 24;&lt;/P&gt;&lt;P&gt;_io_ioctl(spi, IO_IOCTL_SPI_SET_FRAMESIZE, &amp;amp;frame);&lt;/P&gt;&lt;P&gt;_io_read(spi, &amp;amp;buffer, 1); &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This doesnt work because the clock only sends one pulse and data can not be read.&lt;/P&gt;&lt;P&gt;If I change it to&lt;/P&gt;&lt;P&gt;_io_read(spi, &amp;amp;buffer, 24); &lt;/P&gt;&lt;P&gt;I get 24 pulses but no data on my MISO.&lt;/P&gt;&lt;P&gt;I'd be thankful for advice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Mar 2014 12:50:47 GMT</pubDate>
    <dc:creator>wolfgangschwab</dc:creator>
    <dc:date>2014-03-24T12:50:47Z</dc:date>
    <item>
      <title>How to change framesize correctly ?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-change-framesize-correctly/m-p/302459#M661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in order to read data with SPI I have to read with 18 clocks(data sheet ADC). The default framesize is 1 byte. If I read 3 times the problem is a pause between each byte. This probably causes errors.&lt;/P&gt;&lt;P&gt;Here is the code I wrote so far:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;uint_32 frame = 24;&lt;/P&gt;&lt;P&gt;_io_ioctl(spi, IO_IOCTL_SPI_SET_FRAMESIZE, &amp;amp;frame);&lt;/P&gt;&lt;P&gt;_io_read(spi, &amp;amp;buffer, 1); &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This doesnt work because the clock only sends one pulse and data can not be read.&lt;/P&gt;&lt;P&gt;If I change it to&lt;/P&gt;&lt;P&gt;_io_read(spi, &amp;amp;buffer, 24); &lt;/P&gt;&lt;P&gt;I get 24 pulses but no data on my MISO.&lt;/P&gt;&lt;P&gt;I'd be thankful for advice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 12:50:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-change-framesize-correctly/m-p/302459#M661</guid>
      <dc:creator>wolfgangschwab</dc:creator>
      <dc:date>2014-03-24T12:50:47Z</dc:date>
    </item>
  </channel>
</rss>

