Burritoe
05-25-2008, 03:30 AM
Hello everyone.
Let me introduce myself.· My name is Andy, and I am becoming a prop-a-holic.
I spent my last Saturday with a new prop·demo board I think its called (the one with the white little proto board) playing around learning spin and writing from scratch a driver for a 8 by 2 line lcd just to learn the basics.· I liked it so much, I ordered a supply of prop proto boards.
I played with I2C years ago, but used a pc printer port, and frankly dont remember much about it.· So I've been reading posts and such freshing up this last week on the topic.· So think I got a basic understanding of how to implement and use it.
Ok heres my question/plea for advise
I wish to use 2 identical I2C devices on the same bus as slaves, with the prop being the third device and the master.· My understanding is that they are going to have the same slave address.· I need to assign each one a unique sub address, which the devices seem to support.
At this point my idea is to hold one in a reset state while assigning the first one a sub address.· Then of course releasing the reset, and issue the second one its sub address, which the first one should ignore.
Any Ideas, or comments, or did I miss anything?
Thanks in advance for any comments, Andy
P.S.
It also seems as far as pin count goes on the prop side, I could junk the idea connecting the prop chip to the reset lines and just use 2 different I2C busses out the prop chip.· Due to the fact I am exploring the devices themselves, I choose not to go this route, as I may wish to reset them to change operation modes.
Of course the highest priority is pin count at prop side of things, as any remaining pins will be used to communicate out.
·
Let me introduce myself.· My name is Andy, and I am becoming a prop-a-holic.
I spent my last Saturday with a new prop·demo board I think its called (the one with the white little proto board) playing around learning spin and writing from scratch a driver for a 8 by 2 line lcd just to learn the basics.· I liked it so much, I ordered a supply of prop proto boards.
I played with I2C years ago, but used a pc printer port, and frankly dont remember much about it.· So I've been reading posts and such freshing up this last week on the topic.· So think I got a basic understanding of how to implement and use it.
Ok heres my question/plea for advise
I wish to use 2 identical I2C devices on the same bus as slaves, with the prop being the third device and the master.· My understanding is that they are going to have the same slave address.· I need to assign each one a unique sub address, which the devices seem to support.
At this point my idea is to hold one in a reset state while assigning the first one a sub address.· Then of course releasing the reset, and issue the second one its sub address, which the first one should ignore.
Any Ideas, or comments, or did I miss anything?
Thanks in advance for any comments, Andy
P.S.
It also seems as far as pin count goes on the prop side, I could junk the idea connecting the prop chip to the reset lines and just use 2 different I2C busses out the prop chip.· Due to the fact I am exploring the devices themselves, I choose not to go this route, as I may wish to reset them to change operation modes.
Of course the highest priority is pin count at prop side of things, as any remaining pins will be used to communicate out.
·