<?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: Sync between two contrller in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sync-between-two-contrller/m-p/805507#M15771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sorry for the delay.&lt;/P&gt;&lt;P&gt;I just wanted to say that the SPIDR of the slave must be written before the master starts the transfer. It seems like it returns 0 because there are no data in the SPIDR of the slave during the first two transfers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jan 2019 13:55:08 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2019-01-02T13:55:08Z</dc:date>
    <item>
      <title>Sync between two contrller</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sync-between-two-contrller/m-p/805504#M15768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Hi All,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Using 2 MM9z1_638 controller for SPI master and SPI slave.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;In datasheet it mentioned as when it configured as Master----&amp;gt;Clock should be bus clock/2&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&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;&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;when it configured as Slave----&amp;gt;Clock should be bus clock/4&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;So i decided&amp;nbsp;to keep bus clock /4;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;I am using bus clock as 28Mhz.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;am using SPI to ensure both controllers are running on same time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Initially&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;mater&amp;nbsp;will send character 'R'.Slave will reply with 'R'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;Then both will start executing there code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;To verify&amp;nbsp;sync,I enabled 500ms timer. Every&amp;nbsp;500ms tone counter will increment both sided.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;For every&amp;nbsp;one sec master will ask counter value of slave and also&amp;nbsp;stores its count value.If both counter are same then both are in sync.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;But problem is&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;STRONG style="border: 0px; font-weight: bold; font-size: 14px;"&gt;in master = 2,4,6,8,..&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;STRONG style="border: 0px; font-weight: bold; font-size: 14px;"&gt;from&amp;nbsp;&amp;nbsp;slave =0,0,2,4&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Initially&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;two bytes getting 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;Then i decided to send some dummy data from slave to master whenever interrupt hits.In this condition&amp;nbsp;am getting proper value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;also i checked both are running on same speed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;Please let me know the problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;Pavan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2018 08:19:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sync-between-two-contrller/m-p/805504#M15768</guid>
      <dc:creator>dasar_pavanraju</dc:creator>
      <dc:date>2018-12-17T08:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sync between two contrller</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sync-between-two-contrller/m-p/805505#M15769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you attach the debugger to the slave and check the state of the MCU?&lt;/P&gt;&lt;P&gt;The data that the slave returns must be prepared before the the master reads them.&lt;/P&gt;&lt;P&gt;The slave counter can be already 2 but if the SPI data&amp;nbsp;register contains 0, it will return 0 during the transfer.&lt;/P&gt;&lt;P&gt;Do you monitor the SPI bus with an oscilloscope or a logic analyzer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 12:27:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sync-between-two-contrller/m-p/805505#M15769</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-12-19T12:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sync between two contrller</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sync-between-two-contrller/m-p/805506#M15770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the information.&lt;/P&gt;&lt;P&gt;I will add some more point.yes am using oscilloscope to check values.Here also able to see zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you explain more on this line&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;"The data that the slave returns must be prepared before the the master reads them."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="border: 0px;"&gt;&lt;DIV class="" data-questionid="53816565" style="border-width: 0px 0px 1px; border-style: initial initial solid initial; border-color: initial initial #d6d9dc initial;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; padding: 15px 10px;"&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;Please find the code for SPI. I am using controller&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="border: 0px; font-weight: bold; font-size: inherit;"&gt;MM9Z1_639&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;NXP&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;V&lt;/SPAN&gt;oid Init(void) {&lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; /* SPICR1 register configuration */ &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; SPICR1_SPE = 1U;&lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; SPICR1_LSBFE = 0U; &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; SPICR1_CPHA = 1U; &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; SPICR1_CPOL = 0U; &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;#ifdef MICRO1 &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; SPICR1_MSTR = 1U;&lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; SPICR1_SSOE = 0U; &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; SPICR1_SPIE = 0U; &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; SPICR1_SPTIE = 0U; &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;#endif &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;#ifdef MICRO2 &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; SPICR1_MSTR = 0U; &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; SPICR1_SSOE = 0U;&lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; SPICR1_SPIE = 1U; &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; SPICR1_SPTIE = 1U;&lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; #endif /*SPICR2 register configuration */ &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; SPICR2_XFRW = 0U; /* 8 bit data transfer */ &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; SPICR2_SPC0 = 0U;&lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; SPICR2_BIDIROE = 0U;&lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;#ifdef MICRO1 &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; SPICR2_MODFEN = 0U;&lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; SPICR2_SPISWAI = 1U; &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;#endif &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;#ifdef MICRO1&lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SPICR2_MODFEN = 0U;&lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;#endif &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; /*SPIBR configuration */ &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; SPIBR = 0x01;&lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;T_UBYTE Spi_ASample_Tx_Buf_Index = 0;&lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;T_FLAG Spi_ASample_Sync_data; T_UBYTE Rx_Count = 0;&lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;static T_UBYTE counter =0x03; static T_UBYTE call =0x00; &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;static T_UBYTE status_timer =0; v&lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;oid ISR_FCT Spi_ASample_ISR(void) { &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;#ifdef MICRO2 if (SPISR_SPTEF) { (void)bspi_GetRxData(); &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;if(status_timer==1)&lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;{ SPIDRL=ADC_sync_time(); }&lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;} #endif&lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;} &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;void start_ADC_Sync_time() &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;{ if(status_timer&amp;gt;0) &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt; { call=(call+1); } }&lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;T_UBYTE ADC_sync_time(void) { return call; } &lt;/CODE&gt;&lt;/P&gt;&lt;P style="border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;void set_flag(void) { status_timer=1; }&lt;/CODE&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 15:43:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sync-between-two-contrller/m-p/805506#M15770</guid>
      <dc:creator>dasar_pavanraju</dc:creator>
      <dc:date>2018-12-19T15:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sync between two contrller</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sync-between-two-contrller/m-p/805507#M15771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sorry for the delay.&lt;/P&gt;&lt;P&gt;I just wanted to say that the SPIDR of the slave must be written before the master starts the transfer. It seems like it returns 0 because there are no data in the SPIDR of the slave during the first two transfers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2019 13:55:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Sync-between-two-contrller/m-p/805507#M15771</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-01-02T13:55:08Z</dc:date>
    </item>
  </channel>
</rss>

