<?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: FRDM KE02Z SPI example in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-SPI-example/m-p/231029#M4985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SPI with the W5100 can run with or without RTOS. The only thing which is RTOS specific in this driver is to get a semaphore/lock. Don't use that, and you have what you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jan 2014 10:20:06 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2014-01-13T10:20:06Z</dc:date>
    <item>
      <title>FRDM KE02Z SPI example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-SPI-example/m-p/231026#M4982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm learning to write code for FRDM KE02Z. I want to send 8bits words via SPI. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;I&amp;nbsp; have created project, with Processor Expert have created and configurated SM1:SPIMaster_LDD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;And I don't know what code to write for sending 8bit word via SPI in ProcessorExpert.c or Events.c?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;I think I have to use the SM1_SendBlock(); in ProcessorExpert.c, but don't know what arguments need to use.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;I think must be something like &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13896020355385160" jivemacro_uid="_13896020355385160" modifiedtitle="true"&gt;
&lt;P&gt;if(SM1_GetBlockSentStatus = false)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;SM_SendBlock(,00110111);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;Could you help me please.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="ke02.jpg"&gt;&lt;IMG alt="ke02.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/42238i930532D3367453D2/image-size/large?v=v2&amp;amp;px=999" title="ke02.jpg" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 12:59:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-SPI-example/m-p/231026#M4982</guid>
      <dc:creator>CitRam</dc:creator>
      <dc:date>2020-11-02T12:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM KE02Z SPI example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-SPI-example/m-p/231027#M4983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you might have a look at this project:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2014/01/07/frdm-with-arduino-ethernet-shield-r3-part-2-ping/" title="http://mcuoneclipse.com/2014/01/07/frdm-with-arduino-ethernet-shield-r3-part-2-ping/"&gt;FRDM with Arduino Ethernet Shield R3, Part 2: Ping&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is using SPI to communicate with the W5100.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 08:57:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-SPI-example/m-p/231027#M4983</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-01-13T08:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM KE02Z SPI example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-SPI-example/m-p/231028#M4984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thenk you Erich for you answer. I have watched your projects before, in particular W5100 project. But you use FreeRTOS in W5100 project, I have not any experience with any RTOS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 09:28:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-SPI-example/m-p/231028#M4984</guid>
      <dc:creator>CitRam</dc:creator>
      <dc:date>2014-01-13T09:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM KE02Z SPI example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-SPI-example/m-p/231029#M4985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SPI with the W5100 can run with or without RTOS. The only thing which is RTOS specific in this driver is to get a semaphore/lock. Don't use that, and you have what you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 10:20:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-SPI-example/m-p/231029#M4985</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-01-13T10:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM KE02Z SPI example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-SPI-example/m-p/231030#M4986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Have you read the Typical Usage of SPIMaster_LDD ?&lt;/P&gt;&lt;P&gt;There are two Typical Usage what can show you how to use this SPIMaster_LDD.&lt;/P&gt;&lt;P&gt;You just need to do according to them.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41811i6E0E89A174F11D16/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41859i8B8628433D2C1030/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.jpg" alt="2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Binbin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2014 01:30:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-SPI-example/m-p/231030#M4986</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2014-01-14T01:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM KE02Z SPI example</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-SPI-example/m-p/231031#M4987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robin and Erich.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made as adviced Robin, by Help on component. But, I'm sorry, i woluld like send binary word, for example write&amp;nbsp; 11110111, and get from MOSI 11110111, not characters. Becuse in my task eighth bit must be parity bit. I already tried use parity bit set in &lt;EM&gt;Component Inspector/SPI0/Atribute Set Lis&lt;/EM&gt;t, but KE02 doesen't support SPI pairty bit.&lt;/P&gt;&lt;P&gt;Could you advice me how should I change the subroutine for ability writing binary word not ASCII characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13905608509224607" jivemacro_uid="_13905608509224607"&gt;
&lt;P&gt;#define BLOCK_SIZE 4&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;uint8_t OutData[BLOCK_SIZE] = "FF";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;uint8_t InpData[BLOCK_SIZE];&lt;/P&gt;
&lt;P&gt;volatile LDD_SPIMASTER_TError ComError = 0U;&lt;/P&gt;
&lt;P&gt;LDD_TError Error;&lt;/P&gt;
&lt;P&gt;LDD_TDeviceData *MySPIPtr;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;int main(void)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;PE_low_level_init();&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;
&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MySPIPtr = SM1_Init(NULL);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialization of SM1 component */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;
&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;while(1){&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Error = SM1_ReceiveBlock(MySPIPtr, InpData, BLOCK_SIZE);&amp;nbsp; /* Request data block reception */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Error = SM1_SendBlock(MySPIPtr, OutData, BLOCK_SIZE);&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Start transmission/reception */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (!SM1_GetBlockReceivedStatus(MySPIPtr)) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Wait until data block is transmitted/received */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SM1_Main(MySPIPtr);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;#ifdef PEX_RTOS_START&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PEX_RTOS_START();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Startup of the selected RTOS. Macro is defined by the RTOS component. */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; #endif&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;for(;;){}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 10:52:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KE02Z-SPI-example/m-p/231031#M4987</guid>
      <dc:creator>CitRam</dc:creator>
      <dc:date>2014-01-24T10:52:09Z</dc:date>
    </item>
  </channel>
</rss>

