638Views13Replies

Author Options:

how do use i2c on arduino with out pull-up ? Answered

14 Replies

user
steveastrouk (author)2012-04-10

You're using the onboard TWI aren't you ?

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)act casual2012-04-10

Good. In that case, you can usually get away with the default port settings, but I recommend that you add an external pullup as well. The internal one is pretty weak.

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)act casual2012-04-11

External pull up ? What frequency are you intending to work at ?

Select as Best AnswerUndo Best Answer

user
act casual (author)steveastrouk2012-04-11

sorry i read it wrongly
thank you

Select as Best AnswerUndo Best Answer

user
act casual (author)rickharris2012-04-10

I'm not using picaxes I'm using arduino

Select as Best AnswerUndo Best Answer

user
rickharris (author)act casual2012-04-10

Yes I know, BUT the principles are the same - This is a fairly good explanation of what it is all about.

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)2012-04-09

You don't set the pull up/downs in the output mode on an AVR, you can only do it for input mode.

Select as Best AnswerUndo Best Answer

user
iceng (author)steveastrouk2012-04-09

+1
Output means a pin on a digital IC like a Pic, Arduino or AVR
is FORCED High or low by an internal process and a "pull up"
is non sequitur  when compared to a Real output pin.

Of course you could be thinking of an open collector output like some
sensors that need a pull up resistor.

That does not occur ever in the land of micro-processors :-)

A

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)iceng2012-04-09

Ermm. Some of the LPC series have that very functionality - configurably

Select as Best AnswerUndo Best Answer

user
iceng (author)steveastrouk2012-04-09

Didn't know that.......... Really...,  open collectors..........

Now I have to apologize to .act casual.

Select as Best AnswerUndo Best Answer

user
rickharris (author)2012-04-09

The pull up resistor is a passive device. In general outputs don't have a pull up they are active pins and will be high low or high impedance.

Can you explain in more detail what your trying to do - Circuit diagrams help.

Select as Best AnswerUndo Best Answer