<?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: JN5169:slave 2-wire serial interface in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-slave-2-wire-serial-interface/m-p/804174#M5185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;I have the same problem and I find your answers a bit confusing.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;1. Chapter 29.3 specifies how to register a callback but the question is about how to find out interrupt type on JN5169 on which interrupt handlers are declared in&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;irq_JN516x.S rather than by registering a callback. Please advice how to indentify interrput type (e.g.&amp;nbsp;E_AHI_SIM_RXACK_MASK or&amp;nbsp;E_AHI_SIM_BUSY_MASK) on JN5169.&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;2. This function clears System Controller interrupts. The question is about clearing 2-wire serial interrupts. Please advice how to exactly clear Serial Interface interrupt&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;3. I can't find any 2-wire example in&amp;nbsp;&lt;SPAN&gt;JN-AN-1220 Sensor. Please indicate file and line number.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Nov 2019 22:37:14 GMT</pubDate>
    <dc:creator>witoldsowa</dc:creator>
    <dc:date>2019-11-03T22:37:14Z</dc:date>
    <item>
      <title>JN5169:slave 2-wire serial interface</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-slave-2-wire-serial-interface/m-p/804172#M5183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The function&amp;nbsp; &lt;SPAN class=""&gt;vAHI_SiRegisterCallback(PR_HWINT_APPCALLBACK &lt;/SPAN&gt;&lt;SPAN class=""&gt;prSiCallback&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&amp;nbsp; in&amp;nbsp;&amp;nbsp;"&lt;SPAN class=""&gt;JN516x Integrated Peripherals API User Guide&lt;/SPAN&gt;&amp;nbsp;Revision 1.5" registers a user-defined callback function that will be called when a Serial Interface interrupt is triggered on an SI master or on an SI slave.&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;If RAM is powered off during sleep and interrupts are required, the callback function must be re-registered before calling &lt;/SPAN&gt;&lt;SPAN class=""&gt;u32AHI_Init() &lt;/SPAN&gt;&lt;SPAN class=""&gt;on waking.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;In sample&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/JN-AN-1216.zip" style="color: #3d9ce7; background-color: initial; text-decoration: underline; font-size: 14px;"&gt;JN-AN-1216&lt;/A&gt;，the&amp;nbsp;&lt;SPAN&gt;u32AHI_Init() is not called.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;PUBLIC &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;void&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; APP_vSetUpHardware(&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;void&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;#if (JENNIC_CHIP_FAMILY &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt; JN517x)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; vAHI_Uart0RegisterCallback(APP_isrUart);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; u32AHI_Init();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; vAHI_InterruptSetPriority(MICRO_ISR_MASK_BBC, NVIC_INT_PRIO_LEVEL_BBC);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; vAHI_InterruptSetPriority(MICRO_ISR_MASK_UART0, NVIC_INT_PRIO_LEVEL_UART0);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;#else&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; TARGET_INITIALISE();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* clear interrupt priority level */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; SET_IPL(&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; portENABLE_INTERRUPTS();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;#endif&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;My device is JN5169.JENNIC_CHIP_FAMILY=JN516X&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I register the serial interface isr callback function APP_isrIIC like the APP_isrUart in the irq_JN516x.S file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #1e1e1e; color: #569cd6;"&gt;void APP_isrIIC(void)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #1e1e1e; color: #569cd6;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #1e1e1e; color: #569cd6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;The type of slave serial interface interrupt？？？？&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;question:&lt;/P&gt;&lt;P&gt;1. How can I get the interrupt type of the serial interface???&lt;/P&gt;&lt;P&gt;2. How to clear interrupt source???&lt;/P&gt;&lt;P&gt;3. Is there the sample about the slave interface interrupt of JN5169???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 08:18:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-slave-2-wire-serial-interface/m-p/804172#M5183</guid>
      <dc:creator>zherlei</dc:creator>
      <dc:date>2018-10-18T08:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169:slave 2-wire serial interface</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-slave-2-wire-serial-interface/m-p/804173#M5184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhou,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. How can I get the interrupt type of the serial interface???&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/JN-UG-3087.pdf"&gt;JN516x Integrated Peripherals API User Guide&lt;/A&gt;&lt;/P&gt;&lt;P&gt;29.3 General SI Functions&lt;/P&gt;&lt;P&gt;2. How to clear interrupt source???&lt;/P&gt;&lt;P&gt;vAHI_ClearSystemEventStatus&lt;/P&gt;&lt;P&gt;3. Is there the sample about the slave interface interrupt of JN5169???&lt;/P&gt;&lt;P&gt;We provide a simple example for master interface JN-AN-1220 Sensor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2018 03:40:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-slave-2-wire-serial-interface/m-p/804173#M5184</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2018-11-22T03:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: JN5169:slave 2-wire serial interface</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5169-slave-2-wire-serial-interface/m-p/804174#M5185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;I have the same problem and I find your answers a bit confusing.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;1. Chapter 29.3 specifies how to register a callback but the question is about how to find out interrupt type on JN5169 on which interrupt handlers are declared in&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;irq_JN516x.S rather than by registering a callback. Please advice how to indentify interrput type (e.g.&amp;nbsp;E_AHI_SIM_RXACK_MASK or&amp;nbsp;E_AHI_SIM_BUSY_MASK) on JN5169.&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;2. This function clears System Controller interrupts. The question is about clearing 2-wire serial interrupts. Please advice how to exactly clear Serial Interface interrupt&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;3. I can't find any 2-wire example in&amp;nbsp;&lt;SPAN&gt;JN-AN-1220 Sensor. Please indicate file and line number.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Nov 2019 22:37:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5169-slave-2-wire-serial-interface/m-p/804174#M5185</guid>
      <dc:creator>witoldsowa</dc:creator>
      <dc:date>2019-11-03T22:37:14Z</dc:date>
    </item>
  </channel>
</rss>

