matrixofdynamism
Advanced Member level 2
(1) How can SPI multiplex SDI and SDO and use same pin for both since data is only clock at a single edge on both pins? I read the datasheet for MCP4131 for the first time and have been introduced to the concept of multiplexing SDI and SDO. The datasheet gives diagram for how this component maybe connected to a microcontroller on pg.41 of the datasheet.
(2) Since the same edge is usually used for SDO and SDI, doesn't that mean that I will just be reading the data that I am writing out anyway? What am I missing here? I do see the resistor that is connected between SDO and SDI and the note that says "R1 must be sized to ensure VIL and VIH of the devices are met.". But this still does not give me a feeling of this will actually work.
(3) Does PIC actually support multiplexed SDI and SDO of SPI or is using software SPI i.e bit banging the only possibility that exists?
(2) Since the same edge is usually used for SDO and SDI, doesn't that mean that I will just be reading the data that I am writing out anyway? What am I missing here? I do see the resistor that is connected between SDO and SDI and the note that says "R1 must be sized to ensure VIL and VIH of the devices are met.". But this still does not give me a feeling of this will actually work.
(3) Does PIC actually support multiplexed SDI and SDO of SPI or is using software SPI i.e bit banging the only possibility that exists?