Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] i2c pullup resistor and spi

Status
Not open for further replies.

dxtr

Member level 3
Member level 3
Joined
Apr 27, 2012
Messages
66
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,699
hey everyone
i'm trying to connect 2 devices with my pic 18f2550 , one of them uses spi and the other uses i2c
the i2c bus needs pullup resistor , are they going to have any influence on the spi knowing that they have 2 pins in common ?
 

I don't know the answer, but what about powering the pull-up resistor from another PIC output? To turn it off, just set the pin to input so it is high impedance.
 

Unfortunately, you cannot attach an I2C and SPI device to the same peripheral hardware module and access them at the same time.

You can implement a software I2C interface and attach the SPI device to the hardware module.

I believe MikroC Libraries offer a software I2C library routine.

MikroC Software I²C Library


BigDog
 

Hi dxtr;

In my experience, it is possible, but of course not at the same time. The two pullup does not interfere with the SPI.
But I do not use the compiler built-in routines (SPI and I2C libraries), just the ones I wrote.
zuisti
 

what about the uart module , rx and sdo are in the same pin
also i can't use uart with spi ?
 

what about the uart module , rx and sdo are in the same pin
also i can't use uart with spi ?

What I wrote above, is still valid. The cleared SSPEN bit releases all the SPI bits and free to be used for any other purposes (eg RX).
 
  • Like
Reactions: dxtr

    dxtr

    Points: 2
    Helpful Answer Positive Rating
What I wrote above, is still valid. The cleared SSPEN bit releases all the SPI bits and free to be used for any other purposes (eg RX).
its a very goood news thank you so much
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top