<?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: Software I2C master on the HC08 JB8 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Software-I2C-master-on-the-HC08-JB8/m-p/139288#M5287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Simon,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Since the I2C interface requires an active pull-down and a passive pull-up, I would assume that you would set the output latch permanently low&amp;nbsp;to provide&amp;nbsp;the pull-down condition, and then toggle the clock&amp;nbsp;by changing the DDR bit.&amp;nbsp; So when the clock state is set high, the pin&amp;nbsp;would actually become an input.&amp;nbsp; At this point it can easily be determined&amp;nbsp;whether the slave device is forcing the clock&amp;nbsp;line to remain low.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Dec 2006 23:18:13 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2006-12-07T23:18:13Z</dc:date>
    <item>
      <title>Software I2C master on the HC08 JB8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Software-I2C-master-on-the-HC08-JB8/m-p/139287#M5286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have implemented a basic software master I2C module for the HC08 JB8 and I would like to extend it to be able to detect clock stretching by the slave device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to do this, I need to be able to detect when the slave is holding the clock line low.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, the clock line is a output line as far as the JB8 is concerned and on the JB8, unlike some other microcontrollers, you don't appear to be able to read the current actual status of an output line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have looked at the software I2C master application note, but it is silent on the subject of clock stretching.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any suggestions how I can read the actual level of a JB8 output line ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Simon.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 21:36:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Software-I2C-master-on-the-HC08-JB8/m-p/139287#M5286</guid>
      <dc:creator>simon2</dc:creator>
      <dc:date>2006-12-07T21:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Software I2C master on the HC08 JB8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Software-I2C-master-on-the-HC08-JB8/m-p/139288#M5287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Simon,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Since the I2C interface requires an active pull-down and a passive pull-up, I would assume that you would set the output latch permanently low&amp;nbsp;to provide&amp;nbsp;the pull-down condition, and then toggle the clock&amp;nbsp;by changing the DDR bit.&amp;nbsp; So when the clock state is set high, the pin&amp;nbsp;would actually become an input.&amp;nbsp; At this point it can easily be determined&amp;nbsp;whether the slave device is forcing the clock&amp;nbsp;line to remain low.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2006 23:18:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Software-I2C-master-on-the-HC08-JB8/m-p/139288#M5287</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-12-07T23:18:13Z</dc:date>
    </item>
  </channel>
</rss>

