Shop OBEX P1 Docs P2 Docs Learn Events
Compatibility Check — Parallax Forums

Compatibility Check

KyeKye Posts: 2,200
edited 2009-01-21 04:12 in Propeller 1
Hey guys,

Can I connect this device to the propellers I2C pins (29 and 28) without ill affects?

http://www.sparkfun.com/commerce/product_info.php?products_id=99

Its the ds1307 real time clock.

Or should I put resistors between it and the I2C line?

Thanks,

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,

Comments

  • parts-man73parts-man73 Posts: 830
    edited 2009-01-20 22:02
    The DS1307 works fine at 3.3V go ahead use it at the lower voltage. How is your Propeller set up? on a breadboard or circuit board? You'll want pullup resistors on the I2c lines, I assume that you already have if you have an EEPROM connected. (some boards only pull up SDA, some both)

    If you want to run the DS1307 at 5 V simply put a 1k resistor inline between the DS1307 and the rest of the I2C bus.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Brian

    uController.com - home of SpinStudio - the modular Development system for the Propeller

    PropNIC - Add ethernet ability to your Propeller! PropJoy - Plug in a joystick and play some games!

    SD card Adapter - mass storage for the masses Audio/Video adapter add composite video and sound to your Proto Board
  • KyeKye Posts: 2,200
    edited 2009-01-20 22:23
    Thanks, I'll just run it at 5v with 1k resistors inline.

    I'm using the prop proto board btw.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nyamekye,
  • Carl HayesCarl Hayes Posts: 841
    edited 2009-01-21 04:12
    Should work fine with pullup resistors. Caution, though -- when you want to pull a line low, set the pin LOW and OUTPUT. When you want it high, set it INPUT and let the resistors pull it high, lest the Prop try to pull it high and another device try to pull it low at the same time, POOF, another 12 bucks down the tube. That's an invariable necessity with I2C.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    · -- Carl, nn5i@arrl.net
Sign In or Register to comment.