hello, hope you doing all well, i m working on a project to retrieve sensors data and had to use i2c communication with rasberry pico, i managed to make it work, the problem now is i need to add it to an existing project which used almost all pins of rasberry pico, i only have 5 pins left : GP0 , GP1 , GP2 ,GP6 , GP8 all of them are SDA pins for i2c communication except for GP0 who s SDL but i prefer to not use GP0 and GP1 since it s UART for debugging, this leave me with only 3 pins, my question is can i override the function of one of the pins left ? and change it from SDA to SDL ?
I'm not familiar with your board.
The W5500 uses the SPI bus to my knowledge, not the I2C bus. As the SPI bus is a bus you can have multiple SPI devices connected to it; you only need a dedicated chip select pin for each device.
If you're currently using the SPI pins for another purpose, move them to free pins and use the SPI bus.
thank you for the response, but i cannot use SPI ( since the slave is a nano rp 2040 connect which deactivated any SPI communication per default when you power the bluetooth module on ) , so you cannot retrieve BLE data and send it via SPI. i must use i2c , as for the board , here s the pinout : W5500-EVB-Pico | WIZnet Document System
think you need to describe the whole project, e.g. as a series of block diagrams, e.g. where does Bluetooth and Ethernet fit in?
if you just need to add Ethernet to an existing project have a look at the XPORT ethernet module which can connect via serial (I have interfaced one at 921600baud)
Can you once more explain what you want to do ?
There are sensors via I2C. But why do you need 5 pins for SDA ?
Which mystery device is it that you want to communicate with the board ?
A Nano RP2040 Connect ?
Do you run Arduino code on the W5500-EVB-Pico ?
Do you run the Nano RP2040 Connect in normal Arduino mode ?
The most common board with a RP2040 is the Raspberry Pi Pico. Arduino can run on it on top of Mbed. It is still developing and problems are fixed.
I don't know if you get the same for the W5500-EVB-Pico board. Can you buy another board ?
If I remember it correctly, then most pins can be a pair of SDA and SCL when Arduino runs on top of Mbed on a RP2040, but one is always on even pins and the other is always on odd pins.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.