<?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: How to read sensor's registers using SPI? in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-sensor-s-registers-using-SPI/m-p/299876#M616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a new thread following your last comments:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A _jive_internal="true" href="https://community.nxp.com/thread/322753" title="https://community.freescale.com/thread/322753"&gt;https://community.freescale.com/thread/322753&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I will ask info to other teams and will keep you informed via the new thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Apr 2014 11:19:28 GMT</pubDate>
    <dc:creator>trytohelp</dc:creator>
    <dc:date>2014-04-22T11:19:28Z</dc:date>
    <item>
      <title>How to read sensor's registers using SPI?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-sensor-s-registers-using-SPI/m-p/299871#M611</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 am using code warrior with PE. And FRDM-K20D50M board, I Want to read the "who_am_i register" of the FXOS87000CQ accelerometer-magnetometer&amp;nbsp; the address of the register is &lt;STRONG&gt;0x0D. &lt;/STRONG&gt;I am using &lt;STRONG&gt;SPI_Master_LDD &lt;/STRONG&gt;component from PE I couldn't find any syntax for querying the registers. As WHO_AM_I is the easiest thing to read in any such ICs, After that I have to read the accelerometers and magnetometer's x,y,z values. but I am stuck in this. The receive blocks i.e &lt;STRONG&gt;SM1_ReceiveBlock(spipointer, rbuff, sizeof(rbuff)); &lt;/STRONG&gt;doesn't have any bit field to read any register. Is there any sample code for handling the sensors using SPI ? Kindly look into the matter.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 10:56:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-sensor-s-registers-using-SPI/m-p/299871#M611</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-04-18T10:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to read sensor's registers using SPI?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-sensor-s-registers-using-SPI/m-p/299872#M612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;you might have a look at &lt;A href="http://mcuoneclipse.com/2013/12/29/review-new-frdm-kl26z-board/" title="http://mcuoneclipse.com/2013/12/29/review-new-frdm-kl26z-board/"&gt;Review: New FRDM-KL26Z Board | MCU on Eclipse&lt;/A&gt; (search for FXOS8700): I wrote a driver and component which uses the WHO_AM_I register, so you can have a look at this example and driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 11:04:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-sensor-s-registers-using-SPI/m-p/299872#M612</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-04-18T11:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to read sensor's registers using SPI?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-sensor-s-registers-using-SPI/m-p/299873#M613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich&lt;/P&gt;&lt;P&gt;Thanks for the link, Actually I wanted to learn using SPI how can we read the registers? I have used this module in one of my project but it is i2c based. I have some others sensors also which is SPI based so for that I wanted to use SPI. If basic principle of making sensor work using SPI is clear then it will be easy for me as well as other forum members using them too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 11:23:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-sensor-s-registers-using-SPI/m-p/299873#M613</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-04-18T11:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to read sensor's registers using SPI?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-sensor-s-registers-using-SPI/m-p/299874#M614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;ok, I see.&lt;/P&gt;&lt;P&gt;Here are a few examples I use with SPI, and maybe this gives you what you need:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2014/01/05/frdm-with-ardino-ethernet-shield-r3-part-1-sd-card/" title="http://mcuoneclipse.com/2014/01/05/frdm-with-ardino-ethernet-shield-r3-part-1-sd-card/"&gt;http://mcuoneclipse.com/2014/01/05/frdm-with-ardino-ethernet-shield-r3-part-1-sd-card/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2014/01/25/frdm-with-arduino-ethernet-shield-r3-part-3-embedded-web-server/" title="http://mcuoneclipse.com/2014/01/25/frdm-with-arduino-ethernet-shield-r3-part-3-embedded-web-server/"&gt;http://mcuoneclipse.com/2014/01/25/frdm-with-arduino-ethernet-shield-r3-part-3-embedded-web-server/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2013/07/20/tutorial-ultra-low-cost-2-4-ghz-wireless-transceiver-with-the-frdm-board/" title="http://mcuoneclipse.com/2013/07/20/tutorial-ultra-low-cost-2-4-ghz-wireless-transceiver-with-the-frdm-board/"&gt;http://mcuoneclipse.com/2013/07/20/tutorial-ultra-low-cost-2-4-ghz-wireless-transceiver-with-the-frdm-board/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 12:00:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-sensor-s-registers-using-SPI/m-p/299874#M614</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-04-18T12:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to read sensor's registers using SPI?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-sensor-s-registers-using-SPI/m-p/299875#M615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich&lt;/P&gt;&lt;P&gt;Thanks for the above links, From the 3rd link u provided, I got some pointers on how to work as there is a method created by you which says " &lt;STRONG&gt;uint8_t SPI_ReadRegister(uint8_t reg)&lt;/STRONG&gt; " and similarly for write register. I tried to make it work but was not successful. I will again try using it. Any suggestions how to deal with it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Apr 2014 07:37:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-sensor-s-registers-using-SPI/m-p/299875#M615</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-04-19T07:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to read sensor's registers using SPI?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-sensor-s-registers-using-SPI/m-p/299876#M616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a new thread following your last comments:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A _jive_internal="true" href="https://community.nxp.com/thread/322753" title="https://community.freescale.com/thread/322753"&gt;https://community.freescale.com/thread/322753&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I will ask info to other teams and will keep you informed via the new thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pascal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 11:19:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-read-sensor-s-registers-using-SPI/m-p/299876#M616</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2014-04-22T11:19:28Z</dc:date>
    </item>
  </channel>
</rss>

