Basic Stamp with 3.3v I2C
Buddie
Posts: 29
I am trying to interface my BS2px to a chip using I2C. This chip uses 3.3v logic levels and cannot tolerate the stamp's 5v. If I just pull up the SDA and SCL lines to 3.3v instead of 5v, will this work okay? I think it should work since the lines are never driven high, just released and driven low, right? I just wanted to have someone check me on this so that I don't fry my chip with 5v. Thanks!
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
··Thanks for any··that you may have and all of your time finding them
·
·
·
·
Sam
It should just be a matter of·if the stamp will reconize the data at that voltage/timming.
Your approach should work fine. The danger, of course, is a program bug that inadvertently drives one of the lines high. If you stick with the I2CIN and I2COUT commands, you should be safe. Although the PBASIC manual does not say so explicitly, one can infer from other hints in the description that neither SDA nor SCL are driven high by either command. But, in the words of 1980s d
P.S. I intend to use a 3.3v PIC in my final circuit, but am using the stamp to make the program easier to develop and reduce complications for now.
-Phil