<?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>8-bit Microcontrollers中的主题 Re: DS1307 in assembly for 9S08</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/DS1307-in-assembly-for-9S08/m-p/204273#M16963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi bigmac,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found on this forum post&amp;nbsp;&lt;A href="https://community.freescale.com/message/62881#62881" title="https://community.freescale.com/message/62881#62881"&gt;https://community.freescale.com/message/62881#62881&lt;/A&gt;&amp;nbsp;that there are some errors in the datasheet. A friend of mine have tried that out and it works according to the address provided from that post. I also find that there are really lack of info provided for that part. haha.. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Aug 2010 11:29:26 GMT</pubDate>
    <dc:creator>mylim</dc:creator>
    <dc:date>2010-08-28T11:29:26Z</dc:date>
    <item>
      <title>DS1307 in assembly for 9S08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/DS1307-in-assembly-for-9S08/m-p/204266#M16956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have used the I2C for serial EEPROMS but seem unable to get my code to work for the DS1307 RTC.&amp;nbsp; I must have some sort of blind spot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have assembly code for the DS1307 they can share?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jun 2010 03:27:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/DS1307-in-assembly-for-9S08/m-p/204266#M16956</guid>
      <dc:creator>RogerSchaefer</dc:creator>
      <dc:date>2010-06-01T03:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: DS1307 in assembly for 9S08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/DS1307-in-assembly-for-9S08/m-p/204267#M16957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Roger,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two considerations come to mind where the DS1307 may differ from an EEPROM device -&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Do you have the correct slave address ($D0 for write, and $D1 for read)?&lt;/LI&gt;&lt;LI&gt;Does the clock rate exceed 100kHz?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jun 2010 22:58:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/DS1307-in-assembly-for-9S08/m-p/204267#M16957</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-06-01T22:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: DS1307 in assembly for 9S08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/DS1307-in-assembly-for-9S08/m-p/204268#M16958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mac,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I have the correct slave address and I have set the IIC to 25KHz during debugging.&lt;/P&gt;&lt;P&gt;My assembly code is based on that you posted on the forum some time ago.&lt;/P&gt;&lt;P&gt;No problem with EEPROM.&lt;/P&gt;&lt;P&gt;What is frustrating is that I KNOW how to interface a DS1307.&amp;nbsp; I did it years ago for a MC68HC11 using bit-banging.&lt;/P&gt;&lt;P&gt;See &lt;A href="http://www.rasmicro.com/DS1307.htm" rel="nofollow" target="_blank"&gt;http://www.rasmicro.com/DS1307.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is something about the IIC module that I am not understanding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jun 2010 23:23:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/DS1307-in-assembly-for-9S08/m-p/204268#M16958</guid>
      <dc:creator>RogerSchaefer</dc:creator>
      <dc:date>2010-06-01T23:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: DS1307 in assembly for 9S08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/DS1307-in-assembly-for-9S08/m-p/204269#M16959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Roger,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a closer look at AN1759, pertaining to the DS1307 in conjunction with the ancient HC705 family.&amp;nbsp; While this is "bit-banging" code, its implementation does not appear to be particularly complex, and speed is not an issue since IIC is a relatively slow process anyway.&amp;nbsp; I adapted the code for HCS08 devices,&amp;nbsp;making extensive use of macros to make the sequence clearer.&amp;nbsp; This code is attached, but is untested as I don't have the requred hardware setup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this code works for the RTC device, perhaps it may lead to sorting out what is missing when you attempt to use the IIC module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 21:20:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/DS1307-in-assembly-for-9S08/m-p/204269#M16959</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-06-02T21:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: DS1307 in assembly for 9S08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/DS1307-in-assembly-for-9S08/m-p/204270#M16960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the effort, Mac, but I really wanted to get the I2C module working.&amp;nbsp; I finally did after quite of bit of debuggin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone else want assembly code for the DS1307 clock chip I have it posted on my website:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.rasmicro.com/DS1307.htm" rel="nofollow" target="_blank"&gt;http://www.rasmicro.com/DS1307.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 02:06:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/DS1307-in-assembly-for-9S08/m-p/204270#M16960</guid>
      <dc:creator>RogerSchaefer</dc:creator>
      <dc:date>2010-07-13T02:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: DS1307 in assembly for 9S08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/DS1307-in-assembly-for-9S08/m-p/204271#M16961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bigmac,&lt;/P&gt;&lt;P&gt;Basing on your sample bit bang code, i tried it on &amp;nbsp;a MS9S08QE32 with a Freescale MPR121, from my scope i can see the tx is working but when rx i couldn't seem to get the value from the MPR121 touch sensor IC.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested it with your code. Could you advise?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 22:48:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/DS1307-in-assembly-for-9S08/m-p/204271#M16961</guid>
      <dc:creator>mylim</dc:creator>
      <dc:date>2010-08-26T22:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: DS1307 in assembly for 9S08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/DS1307-in-assembly-for-9S08/m-p/204272#M16962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello MY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The linked communications protocol document for the MPR121 suggests that the 7-bit slave address value may be configured from the range $4C, $4D, $4E and $4F.&amp;nbsp; However, your code seems to select from the range $5A, $5B, 5C&amp;nbsp;and $5D.&amp;nbsp;&amp;nbsp; This may be the reason for the IIC slave not responding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Aug 2010 04:47:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/DS1307-in-assembly-for-9S08/m-p/204272#M16962</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-08-28T04:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: DS1307 in assembly for 9S08</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/DS1307-in-assembly-for-9S08/m-p/204273#M16963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi bigmac,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found on this forum post&amp;nbsp;&lt;A href="https://community.freescale.com/message/62881#62881" title="https://community.freescale.com/message/62881#62881"&gt;https://community.freescale.com/message/62881#62881&lt;/A&gt;&amp;nbsp;that there are some errors in the datasheet. A friend of mine have tried that out and it works according to the address provided from that post. I also find that there are really lack of info provided for that part. haha.. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Aug 2010 11:29:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/DS1307-in-assembly-for-9S08/m-p/204273#M16963</guid>
      <dc:creator>mylim</dc:creator>
      <dc:date>2010-08-28T11:29:26Z</dc:date>
    </item>
  </channel>
</rss>

