<?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>Processor Expert Software中的主题 KDS Problem OnTxChar interrupt SPI</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/KDS-Problem-OnTxChar-interrupt-SPI/m-p/1424576#M5029</link>
    <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I'm trying to communicate via SPI with a stepper motor module.In my project I using FRDM MKE02Z, KDS and PE Syncro Master component. So, the issue I found is related with the interrupt OnTxChar, it seems that occurs before complete a char transmit.&lt;/P&gt;&lt;P&gt;Between the commands i need to toggle the CS and this is performed manually (cause I using CPOL = 1 and CPHA =1 and this mode does not allow automatic toggle). 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 12:45:15 GMT</pubDate>
    <dc:creator>michaeltoaldo</dc:creator>
    <dc:date>2022-03-08T12:45:15Z</dc:date>
    <item>
      <title>KDS Problem OnTxChar interrupt SPI</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/KDS-Problem-OnTxChar-interrupt-SPI/m-p/1424576#M5029</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I'm trying to communicate via SPI with a stepper motor module.In my project I using FRDM MKE02Z, KDS and PE Syncro Master component. So, the issue I found is related with the interrupt OnTxChar, it seems that occurs before complete a char transmit.&lt;/P&gt;&lt;P&gt;Between the commands i need to toggle the CS and this is performed manually (cause I using CPOL = 1 and CPHA =1 and this mode does not allow automatic toggle). 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 12:45:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/KDS-Problem-OnTxChar-interrupt-SPI/m-p/1424576#M5029</guid>
      <dc:creator>michaeltoaldo</dc:creator>
      <dc:date>2022-03-08T12:45:15Z</dc:date>
    </item>
  </channel>
</rss>

