AnsweredAssumed Answered

Working sample code or procedure for AD7689

Question asked by AndyR on May 7, 2013
Latest reply on May 8, 2013 by KarenNE

Hi Bindu-

 

I am re-posting your question as a discussion in the Precision ADCs Community.  Someone here should be able to assist you.

 

Hi,

AD7689

Can anyone share a working sample code or procedure for AD7689 as had been trying with it and submission date is near and have already read the posts in ADI for AD7689

Below is the procedure

1)      Procedure for Read Back

Step1:  CNV = LOW

Step2: DIN = CFG =0x3C70 << 2 (Overwrite contents of register, Unipolar, IN0 to IN7 referenced to GND, IN0, Full BW, External reference, temperature disabled,Sequencer disabled, Read back Enabled).

Step3: DIN = 0x00 ( Dummy write,SDO read back CFG)

Note :- When we write 0x00 on DIN line, then the previous CFG will not be overwritten?

If the CFG is overwritten, then what should i do with the DIN line

Step4: CNV = HIGH

 

2)      Procedure to read IN0 input

Step1:  CNV = LOW

Step2: DIN = CFG =0x3C71 << 2 (Overwrite contents of register, Unipolar, IN0 to IN7 referenced to GND, IN0, Full BW, External reference, temperature disabled,Sequencer disabled, Read back Diabled).

Step3: CNV = HIGH

Step4: CNV = LOW

Step5: DIN = 0x00 (Dummy write)

Note: - When we write 0x00 on DIN line, then the previous CFG will not be overwritten?

If the CFG is overwritten, then what should i do with the DIN line

Step6: CNV = HIGH

Step7: CNV = LOW

Step8: DIN = 0x00 (Dummy write, SDO IN0 value)

Note: - When we write 0x00 on DIN line, then the previous CFG will not be overwritten?

If the CFG is overwritten, then what should i do with the DIN line

Step9: CNV = HIGH

 

Regards,

Bindu

Outcomes