Hi,
i want to ask a quick question. You can find attached the schematic of what I want to implement. I have a uC (EM250, it is a zigbee module actually), which has only two serial ports. Port P1 will be configured as SPI (for flash memory, pressure sensor etc.), whereas port P2 will be either I2C or UART. Not at the same time of course. And the different configuration will be controlled by the firmware. UART is needed to communicate with a UART-To-USB chip (FTDI) for sending data to the PC. I2C is needed to access a temperature sensor. When I take measurements, the I2C will be active. When I want to send data to the PC, the UART will be active.
I intend to use an analogue switch (as seen in figure) to either select the FTDI or the sensor for communication. Will this implementation work? I'm afraid that the I2C bus will have problems. Something else that I have thought, is to use buffers and to isolate from the two lines to the uC the device that is not needed.
Thanks!
Nick
i want to ask a quick question. You can find attached the schematic of what I want to implement. I have a uC (EM250, it is a zigbee module actually), which has only two serial ports. Port P1 will be configured as SPI (for flash memory, pressure sensor etc.), whereas port P2 will be either I2C or UART. Not at the same time of course. And the different configuration will be controlled by the firmware. UART is needed to communicate with a UART-To-USB chip (FTDI) for sending data to the PC. I2C is needed to access a temperature sensor. When I take measurements, the I2C will be active. When I want to send data to the PC, the UART will be active.
I intend to use an analogue switch (as seen in figure) to either select the FTDI or the sensor for communication. Will this implementation work? I'm afraid that the I2C bus will have problems. Something else that I have thought, is to use buffers and to isolate from the two lines to the uC the device that is not needed.
Thanks!
Nick