<?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 on PT60 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/I2C-slave-on-PT60/m-p/317272#M20819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to code a simple I2C slave driver for PT60 and I've been facing tons of issues. First, my scenario:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CW 10.5 and&amp;nbsp; twr-s08dc-pt60&lt;/P&gt;&lt;P&gt;I'm using processor expert, there are 2 high level beans: I2C and watchdog.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is just a loop feeding the dog, I2C uses interrupts/events to send and receive data.&lt;/P&gt;&lt;P&gt;The testing tool is a wandboard and I2C-dev tools (i2cdetect and i2cget).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issues:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I can't debug it. If I let it run, I cannot pause. If is pauses, it reaches some unknown position in memory or just loses communication&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Breakpoints aren't working either, they occurs in a odd pattern.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I'm not sure about the meaning of I2C clock and hold time that are shown on processor expert. Are those the maximum or minimum values?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any tips/guides/advices/questions are welcome.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hugo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2014 13:57:20 GMT</pubDate>
    <dc:creator>hugosampaio</dc:creator>
    <dc:date>2014-07-08T13:57:20Z</dc:date>
    <item>
      <title>I2C slave on PT60</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/I2C-slave-on-PT60/m-p/317272#M20819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to code a simple I2C slave driver for PT60 and I've been facing tons of issues. First, my scenario:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CW 10.5 and&amp;nbsp; twr-s08dc-pt60&lt;/P&gt;&lt;P&gt;I'm using processor expert, there are 2 high level beans: I2C and watchdog.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is just a loop feeding the dog, I2C uses interrupts/events to send and receive data.&lt;/P&gt;&lt;P&gt;The testing tool is a wandboard and I2C-dev tools (i2cdetect and i2cget).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issues:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I can't debug it. If I let it run, I cannot pause. If is pauses, it reaches some unknown position in memory or just loses communication&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Breakpoints aren't working either, they occurs in a odd pattern.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I'm not sure about the meaning of I2C clock and hold time that are shown on processor expert. Are those the maximum or minimum values?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any tips/guides/advices/questions are welcome.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hugo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 13:57:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/I2C-slave-on-PT60/m-p/317272#M20819</guid>
      <dc:creator>hugosampaio</dc:creator>
      <dc:date>2014-07-08T13:57:20Z</dc:date>
    </item>
  </channel>
</rss>

