<dissanayaka.asj@...> wrote:
>
> >
> > Dear all,
> >
>
> can anybody help me to configure a PIC16F877A MUC to communicate with an
> OOPic using I2C. I want to know the addressing mode ( whether its
7bit or 10
> bit) and cahnnel speed. MCU acts as the slave. thanks,
>
> Disa
I can't give you the solution because I have never done this.
However, here are a couple of hints.
First, you need to find the entire I2C state machine code, I don't
know where to get it. Perhaps www.piclist.com or www.microchip.com.
I think you will need the fully interrupt driven state machine.
Second, you will be connecting the MCU to the OOPic LOCAL I2C bus -
the one that connects to the EEPROM.
Third, you get to select 7 or 10 bit addressing when you set up
SSPM3:SSPM0 which also selects the slave mode.
Fourth, if there is any way in the world you can change to SPI, you
might want to consider it. I2C is very difficult to get set up unless
you have a logic analyzer or storage scope.
The channel speed will be SLOW. The OOPic bit-bangs the LOCAL I2C
bus. I'm only guessing that the MCU will accept the VERY SLOW clock
signals but it should.
What functions will the MCU provide? Are there other ways to get the
same result? Could you just use another OOPic and connect them via
oDDELink?
Richard
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
No comments:
Post a Comment