Shop OBEX P1 Docs P2 Docs Learn Events
Hi! Anybody fmiliar with SPI Op-Amp MCP6S91 — Parallax Forums

Hi! Anybody fmiliar with SPI Op-Amp MCP6S91

Lee SadeliLee Sadeli Posts: 29
edited 2005-05-28 06:17 in BASIC Stamp
Hi,

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

Thanks

Comments

  • Tracy AllenTracy Allen Posts: 6,658
    edited 2005-05-27 18:57
    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,[noparse][[/noparse]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
  • Lee SadeliLee Sadeli Posts: 29
    edited 2005-05-28 06:17
    Hi Tracy.

    Thanks for your input. Will try and let you know the outcome.
Sign In or Register to comment.