AnsweredAssumed Answered

AD7328 channel selection problem

Question asked by KDN on May 24, 2015
Latest reply on May 26, 2015 by KarenNE

I am trying to get data from different channel of AD7328, but receiving data only from channel 0.

 

 

This is my code.   How can I switch to different channel

 

 

spi_data ( 0b00000000 ); // range_register1

spi_data ( 0b00000000 );

 

 

spi_data ( 0b00000000 ); // range_register2

spi_data ( 0b00000000 );

 

 

spi_data ( 0b00000000 ); // sequence_register

spi_data ( 0b00010000 );

 

 

spi_data ( 0b00100000 ); // control_register

k=0;

spi_data_recive ( 0b00100000 );

spi_data_recive ( 0xFF );

 

Outcomes