Interfacing AD7924 with MbedLPC1768 using SPI

29 Jun 2011

I need to interface AD7924 with Mbedlpc1768 using SPI. I have connected mosi, miso, sclk,CS pins of Mbed to adc7924 pins. Could you provide the source code?

SPI spi(p5, p6, p7); // mosi, miso, sclk
DigitalOut cs(p10);
int main()
 {
spi.format(8,3);
spi.frequency(1000000);
}