<?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>Kinetis Microcontrollers中的主题 MKE02 Master SPI TX Interrupt Error</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02-Master-SPI-TX-Interrupt-Error/m-p/589750#M34728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, please I need some help with this issue, I have trying to develop a simple control of several seven segments led displays using a shift register and the SPI module of a MKE02Z64 microcontroller.&lt;/P&gt;&lt;P&gt;As I thought it, I use the Process Expert functions of Syncro Master like this:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; With a fixed timer I call the function SendChar() to send one character when the display is off.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To power on the display with the right data I use the interrupt OnTXChar() in order to set on the display leds when the data have been shifted.&lt;/P&gt;&lt;P&gt;Simple, but my problem is in the OnTXChar() interrupt, it is triggered when the second bit is sended. ¿Why?&lt;/P&gt;&lt;P&gt;I have been trying also with the function OnFreeTxBuf() and sending data as a block of 1 byte using SenBlock() with the same result, both interrupts are triggered before complete the 8 bit word.&lt;/P&gt;&lt;P&gt;¿What i'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, and sorry about my english...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jul 2016 14:15:02 GMT</pubDate>
    <dc:creator>PabloA</dc:creator>
    <dc:date>2016-07-19T14:15:02Z</dc:date>
    <item>
      <title>MKE02 Master SPI TX Interrupt Error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02-Master-SPI-TX-Interrupt-Error/m-p/589750#M34728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, please I need some help with this issue, I have trying to develop a simple control of several seven segments led displays using a shift register and the SPI module of a MKE02Z64 microcontroller.&lt;/P&gt;&lt;P&gt;As I thought it, I use the Process Expert functions of Syncro Master like this:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; With a fixed timer I call the function SendChar() to send one character when the display is off.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To power on the display with the right data I use the interrupt OnTXChar() in order to set on the display leds when the data have been shifted.&lt;/P&gt;&lt;P&gt;Simple, but my problem is in the OnTXChar() interrupt, it is triggered when the second bit is sended. ¿Why?&lt;/P&gt;&lt;P&gt;I have been trying also with the function OnFreeTxBuf() and sending data as a block of 1 byte using SenBlock() with the same result, both interrupts are triggered before complete the 8 bit word.&lt;/P&gt;&lt;P&gt;¿What i'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, and sorry about my english...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 14:15:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02-Master-SPI-TX-Interrupt-Error/m-p/589750#M34728</guid>
      <dc:creator>PabloA</dc:creator>
      <dc:date>2016-07-19T14:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: MKE02 Master SPI TX Interrupt Error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02-Master-SPI-TX-Interrupt-Error/m-p/589751#M34729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;How do you know SPI send one bit then run to interrupt function ?&lt;/P&gt;&lt;P&gt;Through oscilloscope or logic analyzer&amp;nbsp; ? If yes,&amp;nbsp; could you please show the result ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 10:30:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02-Master-SPI-TX-Interrupt-Error/m-p/589751#M34729</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-07-21T10:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: MKE02 Master SPI TX Interrupt Error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02-Master-SPI-TX-Interrupt-Error/m-p/589752#M34730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Alice, thank you for your reply, I know it because I'm using breakpoints in the debugger and my function in there doesn't work.&lt;/P&gt;&lt;P&gt;Right now I will try using the Logical Device Driver directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 18:01:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02-Master-SPI-TX-Interrupt-Error/m-p/589752#M34730</guid>
      <dc:creator>PabloA</dc:creator>
      <dc:date>2016-08-05T18:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: MKE02 Master SPI TX Interrupt Error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02-Master-SPI-TX-Interrupt-Error/m-p/1424214#M62567</link>
      <description>&lt;P&gt;Hi Guys, i am found the same issue in my project using FRDM MKE02Z. I am using a step motor control module that communicates with SPI bus. Between the commands i need to toggle the CS and this is performed manually. But after some problems i plugged a logic analyzer to verify and saw that interrupt "OnTxChar" is triggered before the char is totally finalized.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Image attached shows 2 commands, i toggle one auxiliar pin at "OnTxChar" to verify what time this occurs (channel 6).&amp;nbsp;&lt;/P&gt;&lt;P&gt;void SPI_SM_OnTxChar(void)&lt;BR /&gt;{&lt;BR /&gt;/* Write your code here ... */&lt;BR /&gt;CS_SPI_SetVal();&lt;BR /&gt;CS_SPI_ClrVal();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Is there a way, with interrupts or pooling mode, to trigger the final of char transmit?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank in advance guys&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 02:55:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKE02-Master-SPI-TX-Interrupt-Error/m-p/1424214#M62567</guid>
      <dc:creator>michaeltoaldo</dc:creator>
      <dc:date>2022-03-08T02:55:16Z</dc:date>
    </item>
  </channel>
</rss>

