Yes, I can send you a couple of very verified bit-banged I2C routines in MPASM. just email me off-list. --Bob On Thu, Feb 12, 2009 at 11:25 AM, Andre Abelian wrote: > Bob, > > I use 18F4520 and I2C a lot and always there are requirements to change > The pic to some thing else. Using CCS compiler all of that change took > me > 1-5 minutes. Is this project done is ASM ? > > Andre > > > > > -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of Bob Axtell > Sent: Thursday, February 12, 2009 9:42 AM > To: Microcontroller discussion list - Public. > Subject: Re: [PIC] 18F4520 MSSP in I2C mode > > Why not simply write your own bit-banged I2C driver? > > --Bob > > On Fri, Jan 30, 2009 at 5:48 AM, JohnSanderson > wrote: >> Hello PIC.ers, >> >> I've been a longtime lurker, only an occasional contributor. >> >> I have an app. that has been in production now for ~7years using >> various PICs. Started with the 16F877, then 18F452 and I am being >> `encouraged' to migrate to the modern 18F4520. >> >> Differences seem minor enough, but the one that is sticking me right > now >> is the MSSP in master mode. >> The I2C bus has 3x 8bit expander IO ports (PCF8574s) hanging off it >> and a DS1307 RTC. >> So far, only one of the IO port expanders takes messages from the > master, >> the others seem unreadable. >> >> I haven't (yet) gone the whole hog of stripping down all the source > code >> to essentials so that the exact problem can be drilled into. >> >> Does anyone out there know of any gotchas or pointers in this > migration? >> >> >> >> bestos, John >> >> eMail from the desk of John Sanderson. >> JS Controls cc. Manufacturer and purveyor of Force testing >> apparatus. >> john@jscontrols.co.za >> www.jscontrols.co.za >> Tel: +27 (0) 11 975 1730 >> Fax: +27 (0) 86 516 9725 >> Cell: +27 (0) 82 741 6275 >> PO Box 1887, Boksburg 1460, >> Rep. of South Africa >> VAT 4280246036 >> -- >> http://www.piclist.com PIC/SX FAQ & list archive >> View/change your membership options at >> http://mailman.mit.edu/mailman/listinfo/piclist >> > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > > IMPORTANT NOTICE: This notice constitutes Proprietary Rights identification of this email including all attachments, which is property that is intended only for the use of the individual or entity to which it is addressed. It also may contain proprietary data or information that is privileged, confidential, or otherwise protected from disclosure under applicable law. The recipient of this data agrees to abide by the United States Export Control of Technical Data and Equipment under the International Traffic in Arms Regulations (ITAR) and Export Administration Regulations (EAR). The recipient agrees to abide by these laws and their regulations not only for export and re-export, but for disclosure to non-U.S. citizens. This email does not grant or assign rights of ownership in the proprietary subject matter herein, nor shall it be construed as a joint venture, partnership, teaming agreement, or other formal business relationship. If the reader of this e-mail transmissi! on! > is not the intended recipient or the employee or agent responsible for delivering the transmission to the intended recipient, you are hereby notified that any dissemination, distribution, copying or use of this e-mail or its contents is strictly prohibited. Please notify the sender you received it in error by responding to the e-mail and then permanently delete it and all copies of the e-mail immediately, including any copies of it in your deleted email folder. > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist