<?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: Timestamping events in the code in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timestamping-events-in-the-code/m-p/408132#M22927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the timestamp is only to know the correct speed why don't you see the SPI signals in an oscilloscope?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And answering your questions. Yes, the RTC configuration is OK. And yes, you should be able to count every 1/32768 Hz = 30.51 us by reading the register RTC_TPR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the printf printing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jun 2015 15:18:53 GMT</pubDate>
    <dc:creator>EarlOrlando</dc:creator>
    <dc:date>2015-06-01T15:18:53Z</dc:date>
    <item>
      <title>Timestamping events in the code</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timestamping-events-in-the-code/m-p/408128#M22923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am using a K53 tower Freescale Evaluation board.&lt;/P&gt;&lt;P&gt;I need to time stamp a particular event in the code (A data variable is filled), and would like to know if this is possible and if so, how I would go about doing it.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 09:47:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timestamping-events-in-the-code/m-p/408128#M22923</guid>
      <dc:creator>samyuktaramnath</dc:creator>
      <dc:date>2015-05-29T09:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamping events in the code</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timestamping-events-in-the-code/m-p/408129#M22924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Samyukta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using a RTOS or is your project in baremetal?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 19:41:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timestamping-events-in-the-code/m-p/408129#M22924</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-05-29T19:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamping events in the code</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timestamping-events-in-the-code/m-p/408130#M22925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mr. Earl&lt;/P&gt;&lt;P&gt;The project is baremetal.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Samyukta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 May 2015 03:50:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timestamping-events-in-the-code/m-p/408130#M22925</guid>
      <dc:creator>samyuktaramnath</dc:creator>
      <dc:date>2015-05-30T03:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamping events in the code</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timestamping-events-in-the-code/m-p/408131#M22926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mr. Earl,&lt;/P&gt;&lt;P&gt;I tried using the RTC to read the number of clock cycles. I used the RTC_TPR register. I Initialized the RTC and then read the value of the RTC_TPR register before loading the data variables and after loading the data variables.&lt;/P&gt;&lt;P&gt;I am trying to establish communication between an analog chip and the K53 microcontroller. I have done so using SPI link, but I want to confirm that the Analog chip (slave) is sending data at the rate I have asked it to. I have given a clock of 1000 kHz from the master for SPI communication, and I should be getting data at a rate of 2000 words per second from the slave. Now to achieve the timestamping, I have read the RTC clock at the event of receiving a word in the code. If the RTC clock is 32kHz, I should be able to correctly detect a data rate of 2000 words per second, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the time interval according to the RTC to get 500 data variables is much less than 0.25 seconds. It is around 0.0175 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing something wrong, either in using an RTC clock less than the SPI master clock (even though I need to detect the event as received word, not received byte), or in the way I am using the RTC clock?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I have used is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;to initialize the RTC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;void rtc_init(uint32 seconds, uint32 alarm, uint8 c_interval, uint8 c_value, uint8 interrupt) &lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; int i;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; /*enable the clock to SRTC module register space*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; SIM_SCGC6 |= SIM_SCGC6_RTC_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; /*Only VBAT_POR has an effect on the SRTC, RESET to the part does not, so you must manually reset the SRTC to make sure everything is in a known state*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*clear the software reset bit*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_CR&amp;nbsp; = RTC_CR_SWR_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_CR&amp;nbsp; &amp;amp;= ~RTC_CR_SWR_MASK;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; /*Enable the interrupt*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(interrupt)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; enable_irq(66);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; /*Enable the oscillator*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_CR |= RTC_CR_OSCE_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; /*Wait to all the 32 kHz to stabilize, refer to the crystal startup time in the crystal datasheet*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(i=0;i&amp;lt;0x600000;i++);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; /*Set time compensation parameters*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_TCR = RTC_TCR_CIR(c_interval) | RTC_TCR_TCR(c_value);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; /*Configure the timer seconds and alarm registers*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_TSR = seconds;&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_TAR = alarm;&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_TPR = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*Enable the counter*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; RTC_SR |= RTC_SR_TCE_MASK;&amp;nbsp; &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In main module, after SPI initialization:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; time_initial= RTC_TPR;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; time_initial_sec = RTC_TSR;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // test single byte transmission&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(j&amp;lt;500){&lt;/P&gt;&lt;P&gt;&amp;nbsp; //for (j=0;j&amp;lt;4;j++){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i=0;i&amp;lt;=11;i++){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data[j] = reg_read(0x00000000);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //I2C0_D = data;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //I2C0_A1 = datain;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time = RTC_TPR;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time_sec = RTC_TSR;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // printf("dataout: %x\ndatain: %x\ntime: %x\nTimeDirect: %x\n\n",data,datain,*ticky,time);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; j++;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; //&amp;nbsp; if(j==500)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // printf("500!\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //printf("%d\n",j);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg_Write(0x40000000);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; printf("initial time = %d\nintial sec = %d\nFinal Time =%d\nFinalTimeSec = %d\n\n",time_initial,time_initial_sec, time,time_sec);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where reg_read and reg_Write are used to read and write from and to 32 bit words respectively.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 May 2015 06:00:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timestamping-events-in-the-code/m-p/408131#M22926</guid>
      <dc:creator>samyuktaramnath</dc:creator>
      <dc:date>2015-05-30T06:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamping events in the code</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timestamping-events-in-the-code/m-p/408132#M22927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the timestamp is only to know the correct speed why don't you see the SPI signals in an oscilloscope?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And answering your questions. Yes, the RTC configuration is OK. And yes, you should be able to count every 1/32768 Hz = 30.51 us by reading the register RTC_TPR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the printf printing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 15:18:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timestamping-events-in-the-code/m-p/408132#M22927</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-06-01T15:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamping events in the code</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timestamping-events-in-the-code/m-p/408133#M22928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;I have seen the SPI signals in an oscilloscope. The data rate it shows is not correct. I should get 2000 words per frame, but I am getting much less. I am checking groups of 12 times the slave select goes low. (That constitutes one frame.) I am getting around 50-100 frames per second where I should be getting 2000. Moreover, this doesn't change with the change in output data rate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the RTC, it prints 370 cycles. Which means, the time taken for 500 data variables to be filled is around 0.0113 s, so the time it takes for 2000*12 (2000 frames - each frame contains 12 words), it takes around 0.54 seconds. That's faster than 2000 words per second data rate I was going for.&lt;/P&gt;&lt;P&gt;Moreover, when I change the data rate output from the AFE to 16000 frames per second, it still gives around the same number of cycles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried time stamping with PIT timer. In the ISR, i incremented a timer, and kept a load value of around 4000. So it goes into the ISR every 80 us. I have a variable which increments in the ISR. After the code is done, I print the value of the incremented variable to get the number of clock cycles passed. Around 71 cycles usually pass, which gives a time of (2000*12/500)*71*(80 us) = 0.27 seconds. This again doesn't change with the output data rate.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Someone had mentioned that measuring throughput would give a high rate of error - however, I assumed that it would atleast show an output data rate less than what I want from the AFE, not much greater.&lt;/P&gt;&lt;P&gt;Any further suggestions would be welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 05:44:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timestamping-events-in-the-code/m-p/408133#M22928</guid>
      <dc:creator>samyuktaramnath</dc:creator>
      <dc:date>2015-06-02T05:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamping events in the code</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timestamping-events-in-the-code/m-p/408134#M22929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please attach your clock and SPI configurations?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 20:05:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timestamping-events-in-the-code/m-p/408134#M22929</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-06-02T20:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamping events in the code</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timestamping-events-in-the-code/m-p/408135#M22930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Earl,&lt;/P&gt;&lt;P&gt;I am sorry for the delay.&lt;/P&gt;&lt;P&gt;The SPI and clock configurations are shown below : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SPI0_MCR = SPI_MCR_MSTR_MASK | &lt;/P&gt;&lt;P&gt;&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; SPI_MCR_DCONF(0x00) | &lt;/P&gt;&lt;P&gt;&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; SPI_MCR_CLR_RXF_MASK | &lt;/P&gt;&lt;P&gt;&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; SPI_MCR_CLR_TXF_MASK |&lt;/P&gt;&lt;P&gt;&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; SPI_MCR_PCSIS(63)| &lt;/P&gt;&lt;P&gt;&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; SPI_MCR_HALT_MASK | //halts transfers&lt;/P&gt;&lt;P&gt;&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; (SPI_MCR_MDIS_MASK &amp;amp; 0x00);//|//| //enables module clocks&lt;/P&gt;&lt;P&gt;&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; // SPI_MCR_CONT_SCKE_MASK; //continuous clock&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; &lt;/P&gt;&lt;P&gt;&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; &lt;/P&gt;&lt;P&gt;&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; &lt;/P&gt;&lt;P&gt;&amp;nbsp; SPI0_CTAR0 = ((SPI_CTAR_DBR_MASK &amp;amp; 0x00)) | &lt;/P&gt;&lt;P&gt;&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; SPI_CTAR_FMSZ(0x07) |&lt;/P&gt;&lt;P&gt;&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; SPI_CTAR_PDT(0x00) |&lt;/P&gt;&lt;P&gt;&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; SPI_CTAR_BR(0x03) | &lt;/P&gt;&lt;P&gt;&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; (SPI_CTAR_CPHA_MASK) |&lt;/P&gt;&lt;P&gt;&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; SPI_CTAR_PBR(0x00)|&lt;/P&gt;&lt;P&gt;&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; (SPI_CTAR_CPOL_MASK);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; SPI0_MCR &amp;amp;= 0xfffffffe ; //start transfers again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 11:51:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timestamping-events-in-the-code/m-p/408135#M22930</guid>
      <dc:creator>samyuktaramnath</dc:creator>
      <dc:date>2015-06-06T11:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamping events in the code</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timestamping-events-in-the-code/m-p/408136#M22931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Samyukta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the problem could be in the clock configurations. May be you are assuming a bus clock frequency but we need to ensure that. Could you please share your clock configurations?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 21:25:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timestamping-events-in-the-code/m-p/408136#M22931</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-07-16T21:25:38Z</dc:date>
    </item>
  </channel>
</rss>

