<?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: Using SPI1 to Interface Accelerometer on K20 MQX... in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-SPI1-to-Interface-Accelerometer-on-K20-MQX/m-p/200042#M2870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I had done that.&amp;nbsp; The problem ended up being that I needed to bridge connections for SPI 1 since I was using the peripheral board.&amp;nbsp; The K20 tower schematic leaves SCLK, SDIN, SDO, CS, etc OPEN, so needed to solder those connections together to make SPI work with the peripheral card on PORT B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, since I was using PORT B instead of PORT C, I needed to modify the pinmux via init_gpio.c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Dec 2012 23:18:24 GMT</pubDate>
    <dc:creator>blow_the_whistl</dc:creator>
    <dc:date>2012-12-10T23:18:24Z</dc:date>
    <item>
      <title>Using SPI1 to Interface Accelerometer on K20 MQX...</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-SPI1-to-Interface-Accelerometer-on-K20-MQX/m-p/200040#M2868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to hook up an external Accelerometer via the K20 tower board + Proto board peripheral card wired to accelerometer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to follow the example under MQX, whereby the tower talks to an EEPROM through SPI0.&amp;nbsp; I basically ported this example over to SPI1 and changed the code to just try and write a few simple accelerometer commands. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is I can't even see the SCLK or Chip Select on a scope.&amp;nbsp; It seems that maybe the pin mux is wrong, so I modified init_gpio.c under BSP to follow our pinmux (using K20 Port B 11, 12, 13, 17 ATL2).&amp;nbsp; Still no function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a simple example of using SPI1 port to read and write (preferably without MQX, but MQX would be helpful too).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a straight forward document regarding changing PINMUX in the BSP (SPI1 Port B in my case).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 15:40:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-SPI1-to-Interface-Accelerometer-on-K20-MQX/m-p/200040#M2868</guid>
      <dc:creator>blow_the_whistl</dc:creator>
      <dc:date>2012-12-06T15:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using SPI1 to Interface Accelerometer on K20 MQX...</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-SPI1-to-Interface-Accelerometer-on-K20-MQX/m-p/200041#M2869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using the TWR-K20D50M or the TWR-K20D72M?&lt;/P&gt;&lt;P&gt;Did you enable the correct driver in the user_config.h file?&lt;/P&gt;&lt;P&gt;For example, for the SPI 0 the below macro should be set to 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define BSPCFG_ENABLE_SPI0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same for the rest of the needed modules.&lt;/P&gt;&lt;P&gt;After that you have to recompile the BSP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 22:53:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-SPI1-to-Interface-Accelerometer-on-K20-MQX/m-p/200041#M2869</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2012-12-10T22:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using SPI1 to Interface Accelerometer on K20 MQX...</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-SPI1-to-Interface-Accelerometer-on-K20-MQX/m-p/200042#M2870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I had done that.&amp;nbsp; The problem ended up being that I needed to bridge connections for SPI 1 since I was using the peripheral board.&amp;nbsp; The K20 tower schematic leaves SCLK, SDIN, SDO, CS, etc OPEN, so needed to solder those connections together to make SPI work with the peripheral card on PORT B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, since I was using PORT B instead of PORT C, I needed to modify the pinmux via init_gpio.c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 23:18:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-SPI1-to-Interface-Accelerometer-on-K20-MQX/m-p/200042#M2870</guid>
      <dc:creator>blow_the_whistl</dc:creator>
      <dc:date>2012-12-10T23:18:24Z</dc:date>
    </item>
  </channel>
</rss>

