<?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 K60 SPI writeread function? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-SPI-writeread-function/m-p/325408#M14945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to configure SPI based sensor with K60 using Codewarrior 10.6. I am facing problem in reading the data. I was looking for some code for reading the register. I tried using PE components of SPI with DMA. using these components I am able to read 6 registers . The problem I am facing is all the 6 received values are not coming in order to the defined buffer. So I wanted to go with baremetal code. I tried using the example code for SPI but that didn't worked. Please look into the matter. and provide some simple code for readwrite. Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2014 06:32:07 GMT</pubDate>
    <dc:creator>Amit_Kumar1</dc:creator>
    <dc:date>2014-07-28T06:32:07Z</dc:date>
    <item>
      <title>K60 SPI writeread function?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-SPI-writeread-function/m-p/325408#M14945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to configure SPI based sensor with K60 using Codewarrior 10.6. I am facing problem in reading the data. I was looking for some code for reading the register. I tried using PE components of SPI with DMA. using these components I am able to read 6 registers . The problem I am facing is all the 6 received values are not coming in order to the defined buffer. So I wanted to go with baremetal code. I tried using the example code for SPI but that didn't worked. Please look into the matter. and provide some simple code for readwrite. Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 06:32:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-SPI-writeread-function/m-p/325408#M14945</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-07-28T06:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: K60 SPI writeread function?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-SPI-writeread-function/m-p/325409#M14946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Could you tell me the full name of your chip and your maskset number?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If your K60 is our Kinetis 100 MHz Rev. 2.x chip, you can refer to the spi code in&amp;nbsp; our KINETIS512_V2_SC sample code, the code link is :&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/download/license.jsp?colCode=KINETIS512_V2_SC&amp;amp;location=null&amp;amp;fasp=1&amp;amp;WT_TYPE=Snippets, Boot Code, Headers, Monitors, etc.&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=zip&amp;amp;WT_ASSET=Downloads&amp;amp;fileExt=.zip&amp;amp;Parent_nodeId=1333141411984714199192&amp;amp;Parent_pageType=product"&gt;&lt;/A&gt;&lt;A href="http://www.freescale.com/webapp/sps/download/license.jsp?colCode=KINETIS512_V2_SC&amp;amp;location=null&amp;amp;fasp=1&amp;amp;WT_TYPE=Snippets" target="test_blank"&gt;http://www.freescale.com/webapp/sps/download/license.jsp?colCode=KINETIS512_V2_SC&amp;amp;location=null&amp;amp;fasp=1&amp;amp;WT_TYPE=Snippets&lt;/A&gt;, Boot Code, Headers, Monitors, etc.&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=zip&amp;amp;WT_ASSET=Downloads&amp;amp;fileExt=.zip&amp;amp;Parent_nodeId=1333141411984714199192&amp;amp;Parent_pageType=product&lt;/P&gt;&lt;P&gt;&amp;nbsp; There has a SPI IAR project, you can refer to the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp; After you initialize the SPI module,&amp;nbsp; you should use the command from your SPI sensor to do communication, your SPI communication time sequence should be consist with your sensor datasheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If the communication is not OK, you should better use the logic analyzer to check the communicate wave , whether your send command is correct. I think you should not use the DMA at first until your SPI communication is ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish my answer helps you!&lt;/P&gt;&lt;P&gt;If you still have question ,please let me know!&lt;/P&gt;&lt;P&gt;jingjing&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 02:57:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-SPI-writeread-function/m-p/325409#M14946</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2014-07-30T02:57:02Z</dc:date>
    </item>
  </channel>
</rss>

