AnsweredAssumed Answered

AD7124-8 issue

Question asked by shawn12 on Dec 22, 2016
Latest reply on Jan 4, 2017 by JellenieR

 

Dears:

I set the AD7124-8 register is as below:

CHANNEL_0、IO_CONTROL_1、IO_CONTROL_2.

I found that IO_CONTROL_1 and IO_CONTROL_2 DOUT would be pull high (see the picture),and read register after setting register commend, IO_CONTROL_1 and IO_CONTROL_2 are be set 0xFFFFFF and 0xFFFF.

How is about this issue? thanks.

 

void channelSet()
{
SPI.transfer( 0x09 ); // Write CHANNEL_0
SPI.transfer( 0x80 ); // Bit7:Enable (1:Channel enable) , Bit1-0:AINP (00:AIN0) , Default:0x8001
SPI.transfer( 0x13 ); // Bit7-5:AINP (000:AIN0) , Bit4-0:AINM (00001:AIN1)

SPI.transfer( 0x03 ); // Write IO_CONTROL_1
SPI.transfer( 0x00 ); //
SPI.transfer( 0x00 ); //
SPI.transfer( 0x00 ); //

SPI.transfer( 0x04 ); // Write IO_CONTROL_2
SPI.transfer( 0x00 ); //
SPI.transfer( 0x00 ); //

SPI.transfer( 0x19 ); // Write CONFIG_0
SPI.transfer( 0x00 ); // Bit3:Bipolar (0:Unipolar operation) , Bit0:REF_BUFP (1:Buffer enable on REFIN(+)) , Default:0x0860
SPI.transfer( 0x70 ); // Bit7:REF_BUFM (1:Buffer enable on REFIN(-)) , Bit6:AIN_BUFP (1:Buffer enable on AINP) , Bit5:AIN_BUFM (1:Buffer enable on AINM) , Bit4-3:REF_SEL (10:Internal reference), Bit2-0:PGA (000:GAIN = 1)

Outcomes