<?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>LPC MicrocontrollersのトピックRe: LPC17XX SPI SPCR register BITEnable for 8 bits</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC17XX-SPI-SPCR-register-BITEnable-for-8-bits/m-p/837589#M33380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Nicholas Lawrenson,&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;It seems so weird, definitely, the SPI is able to support the 8-bit format after setting BitEnable bit with BITS=0x1000.&lt;BR /&gt;In the LPCOpen library, it provides the periph_spi demo and please refer to it for details.&lt;/P&gt;&lt;P&gt;&lt;A class="jivelink10" href="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX" title="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX"&gt;https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX&lt;/A&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&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>Fri, 10 Aug 2018 01:55:21 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2018-08-10T01:55:21Z</dc:date>
    <item>
      <title>LPC17XX SPI SPCR register BITEnable for 8 bits</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC17XX-SPI-SPCR-register-BITEnable-for-8-bits/m-p/837588#M33379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, new to embedded. I am communicating to various peripherals via SPI with the LPC1758. The first device I had working required a 32 bit word. I got this working by sending 2x16 bit words no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then moved on to the next device which required a 24bit word, which meant that 8-bit SPI transfer was better suited. I then decided to change the previous device implementation to send 4x8bit words instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I decided to leave the SPCR-&amp;gt;BitEnable (SPCR bit 2)&amp;nbsp; enabled and set SPCR-&amp;gt;BITS (SPCR 11:8) to 1000 (8 bits per transfer) and could not get the communication working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After trying everything I disabled SPCR-&amp;gt;BitEnable (SPCR bit 2), which set the transfer to default (8 bit transfer) and suddenly sending works fine with no other changes other than removing SPCR-&amp;gt;BitEnable (SPCR bit 2) and SPCR-&amp;gt;BITS (SPCR 11:8)&amp;nbsp; from the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anyone able to tell me why this may be? Didn't post any code as I am unsure if that will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 10:04:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC17XX-SPI-SPCR-register-BITEnable-for-8-bits/m-p/837588#M33379</guid>
      <dc:creator>nicholas1</dc:creator>
      <dc:date>2018-08-09T10:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: LPC17XX SPI SPCR register BITEnable for 8 bits</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC17XX-SPI-SPCR-register-BITEnable-for-8-bits/m-p/837589#M33380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Nicholas Lawrenson,&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;It seems so weird, definitely, the SPI is able to support the 8-bit format after setting BitEnable bit with BITS=0x1000.&lt;BR /&gt;In the LPCOpen library, it provides the periph_spi demo and please refer to it for details.&lt;/P&gt;&lt;P&gt;&lt;A class="jivelink10" href="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX" title="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX"&gt;https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX&lt;/A&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&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>Fri, 10 Aug 2018 01:55:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC17XX-SPI-SPCR-register-BITEnable-for-8-bits/m-p/837589#M33380</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2018-08-10T01:55:21Z</dc:date>
    </item>
  </channel>
</rss>

