<?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 I2C slave data receiving in S32K</title>
    <link>https://community.nxp.com/t5/S32K/I2C-slave-data-receiving/m-p/1416697#M14068</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have configured S32K148 board, made i2c1 as master and i20 as slave. Once the 7-bit slave address is sent by the master, getting ACK from the slave and I am getting address match flag(AMF) and address valid flag(AVF) as 1. After that when I am trying to send a data byte, Receive data flag (SSR[RDF]) is getting set which means (from the DS) receive data is ready. But once RDF is 1, the Slave Receive Data Register(SRDR) is not getting updated, when I try to read SRDR, the RDF is getting reset. So How the data which is received by slave is stored in SRDR or any other register ?&lt;/P&gt;&lt;P&gt;Can anyone help me with this issue,&amp;nbsp;&lt;SPAN&gt;any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Prajwal B V&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Feb 2022 10:11:07 GMT</pubDate>
    <dc:creator>bvpmysore</dc:creator>
    <dc:date>2022-02-21T10:11:07Z</dc:date>
    <item>
      <title>I2C slave data receiving</title>
      <link>https://community.nxp.com/t5/S32K/I2C-slave-data-receiving/m-p/1416697#M14068</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have configured S32K148 board, made i2c1 as master and i20 as slave. Once the 7-bit slave address is sent by the master, getting ACK from the slave and I am getting address match flag(AMF) and address valid flag(AVF) as 1. After that when I am trying to send a data byte, Receive data flag (SSR[RDF]) is getting set which means (from the DS) receive data is ready. But once RDF is 1, the Slave Receive Data Register(SRDR) is not getting updated, when I try to read SRDR, the RDF is getting reset. So How the data which is received by slave is stored in SRDR or any other register ?&lt;/P&gt;&lt;P&gt;Can anyone help me with this issue,&amp;nbsp;&lt;SPAN&gt;any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Prajwal B V&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 10:11:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/I2C-slave-data-receiving/m-p/1416697#M14068</guid>
      <dc:creator>bvpmysore</dc:creator>
      <dc:date>2022-02-21T10:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: I2C slave data receiving</title>
      <link>https://community.nxp.com/t5/S32K/I2C-slave-data-receiving/m-p/1416869#M14073</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/197198"&gt;@bvpmysore&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;There are two ways to read it depending on SCFGR1[RXCFG].&lt;/P&gt;
&lt;P&gt;Please keep in mind that the debugge can read the Receive Data Register and clear the flags too.&lt;/P&gt;
&lt;P&gt;It is better to close the register view and use the core to copy the registers to some variables.&lt;/P&gt;
&lt;P&gt;If RDF = 1, RXCFG = 0, you should be able to copy the received byte to a variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 15:41:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/I2C-slave-data-receiving/m-p/1416869#M14073</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-02-21T15:41:25Z</dc:date>
    </item>
  </channel>
</rss>

