SPI interface
wrk
Posts: 4
in BASIC Stamp
I'm working on connecting a digital potentiometer (MCP4132) to a BS2. I found the Basic Stamp II SPI to MicroChip 4131 Digital Potentiometer discussion which answers most of my questions but in the code there is mention of a 1k resistor on the signal line:
Datapin PIN 0 ' (SDI) Data = Pin 0 **USE 1K RESISTOR**
I do not see this used on other examples of SPI communications (SHIFTIN/SHIFTOUT). Anybody know what this is for?
Datapin PIN 0 ' (SDI) Data = Pin 0 **USE 1K RESISTOR**
I do not see this used on other examples of SPI communications (SHIFTIN/SHIFTOUT). Anybody know what this is for?
Comments
"On the MCP41X1 devices, pin-out limitations do not allow for individual SDI and SDO pins. On these
devices, the SDI and SDO pins are multiplexed. The MCP41X1 serial interface knows when the pin
needs to change from being an input (SDI) to being an output (SDO). The Host Controller’s SDO pin must be
properly protected from a drive conflict."
However, the MCP41X2 has separate SDI and SDO pins per the datasheet:
"The SDI pin is the serial interfaces Serial Data In pin. This pin is connected to the Host Controllers SDO pin."
So the resister should not be required on the MCP41X2?