<?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 AW60 I2C Problems in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/AW60-I2C-Problems/m-p/590893#M22145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&lt;SPAN&gt;I am working with an AW60 (standard mode operation) microcontroller to receive data from a TSL2591 (&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fcdn-shop.adafruit.com%2Fdatasheets%2FTSL25911_Datasheet_EN_v1.pdf" rel="nofollow" target="_blank"&gt;https://cdn-shop.adafruit.com/datasheets/TSL25911_Datasheet_EN_v1.pdf&lt;/A&gt;&lt;SPAN&gt;) light sensor (fast mode operation) through I2C bus.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;I am using the combined format in polling I2C mode and the problem happens when the Repeated Start signal is supposedly generated (by the AW60 as master) to change the data direction; the sensor, apparently, does not detect the low level signal and hence does not send an ACK response after sending the slave address (with direction bit to read).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;To contextualize you, &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI style="text-indent: -18.0pt; margin: 0cm 0cm .0001pt 21.3pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;I used the AN4481 (&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Ffiles%2Fsensors%2Fdoc%2Fapp_note%2FAN4481.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/files/sensors/doc/app_note/AN4481.pdf&lt;/A&gt;) as base to manage the I2C protocol, &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -18.0pt; margin: 0cm 0cm .0001pt 21.3pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;The logic levels are properly guaranteed by pullup 4,7k resistors&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -18.0pt; margin: 0cm 0cm .0001pt 21.3pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;When microcontroller is sending data, the transfer starts, eventually completes and the ACK signal is received by AW60.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -18.0pt; margin: 0cm 0cm .0001pt 21.3pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;I do not know if I am wrong but by reading the I2C manual UM10204 (&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fdocuments%2Fuser_manual%2FUM10204.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/documents/user_manual/UM10204.pdf&lt;/A&gt;) I understood that devices operating on fast mode (until 400 kbps) can hold the data to reduce the data transfer speed at standard mode operation (100 kbps).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;To finish I should to say that working I2C with interruptions is not an option, thus I need some help and I will be very grateful for your comments.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Sep 2016 21:58:30 GMT</pubDate>
    <dc:creator>yosefestebanram</dc:creator>
    <dc:date>2016-09-02T21:58:30Z</dc:date>
    <item>
      <title>AW60 I2C Problems</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/AW60-I2C-Problems/m-p/590893#M22145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&lt;SPAN&gt;I am working with an AW60 (standard mode operation) microcontroller to receive data from a TSL2591 (&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fcdn-shop.adafruit.com%2Fdatasheets%2FTSL25911_Datasheet_EN_v1.pdf" rel="nofollow" target="_blank"&gt;https://cdn-shop.adafruit.com/datasheets/TSL25911_Datasheet_EN_v1.pdf&lt;/A&gt;&lt;SPAN&gt;) light sensor (fast mode operation) through I2C bus.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;I am using the combined format in polling I2C mode and the problem happens when the Repeated Start signal is supposedly generated (by the AW60 as master) to change the data direction; the sensor, apparently, does not detect the low level signal and hence does not send an ACK response after sending the slave address (with direction bit to read).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;To contextualize you, &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI style="text-indent: -18.0pt; margin: 0cm 0cm .0001pt 21.3pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;I used the AN4481 (&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Ffiles%2Fsensors%2Fdoc%2Fapp_note%2FAN4481.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/files/sensors/doc/app_note/AN4481.pdf&lt;/A&gt;) as base to manage the I2C protocol, &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -18.0pt; margin: 0cm 0cm .0001pt 21.3pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;The logic levels are properly guaranteed by pullup 4,7k resistors&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -18.0pt; margin: 0cm 0cm .0001pt 21.3pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;When microcontroller is sending data, the transfer starts, eventually completes and the ACK signal is received by AW60.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="text-indent: -18.0pt; margin: 0cm 0cm .0001pt 21.3pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;I do not know if I am wrong but by reading the I2C manual UM10204 (&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fdocuments%2Fuser_manual%2FUM10204.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/documents/user_manual/UM10204.pdf&lt;/A&gt;) I understood that devices operating on fast mode (until 400 kbps) can hold the data to reduce the data transfer speed at standard mode operation (100 kbps).&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;To finish I should to say that working I2C with interruptions is not an option, thus I need some help and I will be very grateful for your comments.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 21:58:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/AW60-I2C-Problems/m-p/590893#M22145</guid>
      <dc:creator>yosefestebanram</dc:creator>
      <dc:date>2016-09-02T21:58:30Z</dc:date>
    </item>
  </channel>
</rss>

