View Full Version : Hi! Anybody fmiliar with SPI Op-Amp MCP6S91

Lee Sadeli
05-27-2005, 07:00 PM

Anyone familiar on how to use microchip SPI OpAmpĚ MCP6S91
using the Shiftin / shiftout command.


Tracy Allen
05-28-2005, 01:57 AM
I haven't used that particular part, but the interface as described in the data sheet looks quite easy for the Stamp.

SHIFTOUT dpin,sclk,msbfirst,[command\16]

The command word consists of two parts, and the data sheet describes the purpose of each bit. Bits 13, 14 and 15 are the actual command, mostly reserved for future expansion, bit 8 selects the register that will store bits 0 to 7 when the command is a "write". That is either the gain register or the channel select register. The SHIFTOUT command has to be framed by chip select.

Tracy Allen
www.emesystems.com (http://www.emesystems.com)

Lee Sadeli
05-28-2005, 01:17 PM
Hi Tracy.

Thanks for your input. Will try and let you know the outcome.