??? 04/15/05 12:40 Read: times |
#91637 - Set port as input - NO SUCH THING! Responding to: ???'s previous message |
Tony Ta said:
would I need to set p2.6 as an input port (p2.6 =1) , before I can read the data? There is no such thing as "setting an 8051 port for input" http://www.8052.com/forum/read.phtml?id=91528 http://www.8052.com/forum/read.phtml?id=91507 And, in the case of something like the I2C bus, it should be obvious that, if you don't set your pin to '1' (ie, you set it to '0'), then it will completely clobber the SDATA line and there will be nothing there to "read" at all!! |
Topic | Author | Date |
Bit Bang i2c | 01/01/70 00:00 | |
You should | 01/01/70 00:00 | |
Errr | 01/01/70 00:00 | |
a slight problem | 01/01/70 00:00 | |
I was | 01/01/70 00:00 | |
Licence | 01/01/70 00:00 | |
call it SMB | 01/01/70 00:00 | |
maybe different | 01/01/70 00:00 | |
Maybe! | 01/01/70 00:00 | |
Correction! | 01/01/70 00:00 | |
SETB SDA | 01/01/70 00:00 | |
misunderstanding? | 01/01/70 00:00 | |
re: | 01/01/70 00:00 | |
Thanks to Atmel | 01/01/70 00:00 | |
'Stub' resistors missing? | 01/01/70 00:00 | |
Pull ups ? | 01/01/70 00:00 | |
Not those... | 01/01/70 00:00 | |
Rp | 01/01/70 00:00 | |
IIC is owned by philips why not go there | 01/01/70 00:00 | |
You're right! | 01/01/70 00:00 | |
Set port as input - NO SUCH THING! | 01/01/70 00:00 | |
oh yes there is | 01/01/70 00:00 | |
Yes, but not here? | 01/01/70 00:00 | |
nowhere in the documentation | 01/01/70 00:00 | |
one more reason not to rely on testing | 01/01/70 00:00 | |
one more reason not to rely on testing | 01/01/70 00:00 | |
Catch 'em young ... | 01/01/70 00:00 | |
Yes![]() | 01/01/70 00:00 |