PDA

View Full Version : auxio and i2cin/out problem



Michael O'Doul
01-27-2007, 06:07 PM
Hi All:

This one is driving me nuts. I'm using a ds1307 i2c RTC with a bs2p40. On the breadboard, the circuit and code worked beautifully. When I moved the hardware to a PCB, I lost functionality. Everything remained exactly the same EXCEPT that I changed the SDA and SCL pins from MAINIO to AUXIO. The hardware is working fine -- I've verified this by using some of Jon Williams old DS1307 code that doesn't use I2CIN/OUT. The clock is humming away and keeping beautiful time, but I can neither write to nor read from it using I2C commands. I can read from and write to it perfectly if I 'hand-code' the communications.

Does anyone have any experience with this problem and/or its solution? I don't have enough code space not to use I2CIN/OUT, and I can't move the clock back to the MAINIO side of the stamp.

Thanks

michael odoul

Bruce Bates
01-27-2007, 06:34 PM
Michael -

Primative I2C routines are not restricted to only certain pin numbers. The I2CIN and I2COUT commands ARE LIMITED to using either pin 0 or pin 8. Have you kept that restriction in mind?

Regards.

Bruce Bates

Post Edited (Bruce Bates) : 1/27/2007 11:45:49 AM GMT

Michael O'Doul
01-27-2007, 06:40 PM
Color me stupid. I've been using i2cin/out for far too long not to have learned this. By the most improbable of circumstances, I've always RANDOMLY ended up using either 0 or 8 in the past, and therefore never noticed that it was a requirement. This lesson just cost me $60.

Thanks Bruce.

michael odoul

Bruce Bates
01-27-2007, 06:45 PM
Michael -

When can I expect the $60.00 check? http://forums.parallax.com/images/smilies/smile.gif

Bruce

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->

Michael O'Doul
01-27-2007, 06:49 PM
Monday morning if you work for expressPCB.

Otherwise, can you loan me sixty bucks? I have to pay the stupid tax (again).

michael odoul http://forums.parallax.com/images/smilies/smilewinkgrin.gif