Connect mcp3551

I have a MCP3551 (22 bits adc) and it is equipped with the following connections to be interfaced with an Arduino - SCK - SDO/!RDY - !CS. Has someone used this before and can you tell me with library and which output to use?

Hey ssijbesma,

Maybe this link will help: http://forum.arduino.cc/index.php?topic=164643.0

Good luck!

Problem solved: :wink:

/*
This example demonstrate the usage of the A/D Converter with MCP3551 library.
*/
#include <MCP3551.h>
#include <SPI.h>

const int MCPPin = 10;
/*
Connect SCK to CLK (pin 13 on Uno)
Connect SDO/!RDY to MOSI (pin 12 on Uno)
Connect !CS to MCPPIN (pin 10 on Uno)
*/

//Create an instance of MCP3551 connected to the MCPPIN
MCP3551 myADC(MCPPin);

void setup() {

Serial.begin(9600);
}

void loop() {
if(myADC.getCode())
{
Serial.println(myADC.byteCode);
delay(200);
}
}

ssijbesma Can you share that library?

Thanks!