<?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 MKV46 Interrupt Delay in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV46-Interrupt-Delay/m-p/975822#M55322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NXP Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'd like to ask you about a Problem i have encountered in one of my Projects.&lt;/P&gt;&lt;P&gt;I have set up a SPI Communication on a KV46 running at full Clock Speed. All the Bus Clocks are set to their maximum possible Speed, too. I use the CS-Signal of the SPI via a Port-Interrupt (rising Edge) to detect the End of the SPI Message, because this simplifies the whole operation a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The strange thing is that there is a pretty big time delay of around 1µs between the rising edge of the CS Signal at the Pin and the moment the MCU enters the interrupt Routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked if there are any Filters enabled on this Portpin and if the Port really is clocked at it's full speed.&lt;/P&gt;&lt;P&gt;I also tried to look up the maximum values for this kind of time delay, but wasn't able to find any information in the documentation provided by NXP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to minimize this Delay, Does anybody have an Idea how i can get rid of it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Dec 2019 08:17:40 GMT</pubDate>
    <dc:creator>tobiasoswald</dc:creator>
    <dc:date>2019-12-13T08:17:40Z</dc:date>
    <item>
      <title>MKV46 Interrupt Delay</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV46-Interrupt-Delay/m-p/975822#M55322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello NXP Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'd like to ask you about a Problem i have encountered in one of my Projects.&lt;/P&gt;&lt;P&gt;I have set up a SPI Communication on a KV46 running at full Clock Speed. All the Bus Clocks are set to their maximum possible Speed, too. I use the CS-Signal of the SPI via a Port-Interrupt (rising Edge) to detect the End of the SPI Message, because this simplifies the whole operation a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The strange thing is that there is a pretty big time delay of around 1µs between the rising edge of the CS Signal at the Pin and the moment the MCU enters the interrupt Routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked if there are any Filters enabled on this Portpin and if the Port really is clocked at it's full speed.&lt;/P&gt;&lt;P&gt;I also tried to look up the maximum values for this kind of time delay, but wasn't able to find any information in the documentation provided by NXP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to minimize this Delay, Does anybody have an Idea how i can get rid of it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2019 08:17:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV46-Interrupt-Delay/m-p/975822#M55322</guid>
      <dc:creator>tobiasoswald</dc:creator>
      <dc:date>2019-12-13T08:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: MKV46 Interrupt Delay</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV46-Interrupt-Delay/m-p/975823#M55323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/96802i53363B4420E81513/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;According to the picture above,there has a programmable delay between assertion of the PCS signal to the first SCK edge.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;It seems this cause a 1us delay.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;The delay can be set from register CTAR when as a master or CTAR0 when slave.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;More details get from reference manual.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Jianyu:&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0cm 2.0pt 0cm;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Have a great day,&lt;BR /&gt; TIC&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0cm 2.0pt 0cm;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0cm 2.0pt 0cm;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt; Note:&lt;BR /&gt; - If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0cm 2.0pt 0cm;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0cm 2.0pt 0cm;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt; -------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2019 09:11:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV46-Interrupt-Delay/m-p/975823#M55323</guid>
      <dc:creator>nxf58904</dc:creator>
      <dc:date>2019-12-16T09:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: MKV46 Interrupt Delay</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV46-Interrupt-Delay/m-p/975824#M55324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jianyu Chen,&lt;/P&gt;&lt;P&gt;thaks a lot for your reply.&lt;/P&gt;&lt;P&gt;If i get you right, you are referring top the SPI peripheral internal delays. As far as i understand those delays, they don't come to effect in this particular case.&lt;/P&gt;&lt;P&gt;Although i use the Pin assigned to the PCS-Signal of the SPI, which happens to be PC5, i don't use the SPI-Internal interrupts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I chose to use the Port-Based interrupt (PORTC_PCRN5 field IRQC = 1001), so when the SPI frame is done, PCS goes high which triggers the external Port Interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i observe is a 1µs time delay between PCS going high and the controller entering the ISR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2020 08:30:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV46-Interrupt-Delay/m-p/975824#M55324</guid>
      <dc:creator>tobiasoswald</dc:creator>
      <dc:date>2020-01-10T08:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: MKV46 Interrupt Delay</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV46-Interrupt-Delay/m-p/975825#M55325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;I get you.Before entering the ISR,the controller need to push some data likes PC and some temp data.You can debug and find how many command need to run(&lt;SPAN class="" data-group="14_13" style="box-sizing: border-box; color: #666666; font-family: Arial, 'Microsoft YaHei', '\ FAE软雅黑', '\ B8B体', 'Malgun Gothic', Meiryo, sans-serif; font-size: 14.000000953674316px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14.000000953674316px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" data-group="15_14" style="box-sizing: border-box; background-color: #eeeeee; color: #3385ff; font-family: Arial, 'Microsoft YaHei', '\ FAE软雅黑', '\ B8B体', 'Malgun Gothic', Meiryo, sans-serif; font-size: 14.000000953674316px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14.000000953674316px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #666666; font-family: Arial, 'Microsoft YaHei', '\ FAE软雅黑', '\ B8B体', 'Malgun Gothic', Meiryo, sans-serif; font-size: 14.000000953674316px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 14.000000953674316px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;"&gt;assembly)&lt;/SPAN&gt; and if possible you can reduce some data or function ,it will get rid of it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Jianyu:&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0cm 2.0pt 0cm;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Have a great day,&lt;BR /&gt; TIC&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0cm 2.0pt 0cm;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0cm 2.0pt 0cm;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt; Note:&lt;BR /&gt; - If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0cm 2.0pt 0cm;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2.0pt 0cm 2.0pt 0cm;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt; -------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2020 11:22:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MKV46-Interrupt-Delay/m-p/975825#M55325</guid>
      <dc:creator>nxf58904</dc:creator>
      <dc:date>2020-01-15T11:22:09Z</dc:date>
    </item>
  </channel>
</rss>

