View previous topic :: View next topic |
Author |
Message |
Peter Guest
|
I2C and RS-232 |
Posted: Mon Mar 01, 2004 7:16 am |
|
|
Hi all, how is possible use simultaneusly RS-232 and I2C comunication.
Help???? |
|
|
agrj
Joined: 26 Sep 2003 Posts: 48
|
|
Posted: Mon Mar 01, 2004 7:20 am |
|
|
Peter,
first of all, we need some information:
which PIC are you using?
What are you trying to do?
could you post your code?
thanks
Dinho |
|
|
Peter Guest
|
RS232 and I2C |
Posted: Mon Mar 01, 2004 7:31 am |
|
|
Hi all, I use a 16F876.How use simultaneusly I2C and RS-232 comunications.
Help??? |
|
|
agrj
Joined: 26 Sep 2003 Posts: 48
|
|
Posted: Mon Mar 01, 2004 7:37 am |
|
|
Peter,
I just check the datasheet and, yes it's possible to use both interfaces.
I2C is tied to PINs 23 an 18 and RS232 to 25 and 26.
to use I2C you have to connect all your devices to SCL and SDA, and put a pull up resistor in each line.
to use RS232 you will need a MAX232 or alike and connect RX to TX and vice-versa.
I don't know exactly what you want to know. If I can help you with something else, let me know, but explaim better your doubts.
thanks
Dinho |
|
|
|