I want to learn AD7176-2 for high precision applications.
Can I get the reference code? or some demo code just like UG-478 and CN0310?
Apologies for the delay.
The registers used to enable channels are the CHANNEL MAP REGISTER 0-3, These registers can be accessed by writing either 0x10,0x11,0x12, or 0x13 to the COMMUNICATIONS REGISTER. Details for each register are discussed in Tables 30-33 in pages 53-56 of REV.A AD7176-2 datasheet. By default, AIN0-AIN1 are already enabled and is set to channel 0. All the other channels are disabled.
The continuous read mode is can be implemented by first configuring the MODE bits of the ADC MODE REGISTER to Continuous conversion mode(0b000), then setting the CONTREAD bit in the INTERFACE MODE REGISTER. These registers are accessed by writing 0x01(ADC MODE REGISTER) and 0x02(INTERFACE MODE REGISTER).
The CRC can be disabled by clearing the CRC_EN bit of the INTERFACE MODE REGISTER. By default, CRC is disabled.
Regarding unused AIN pins,since the AD7176-2 has multiplexed analog input pins, unused analog input pins can be left floating, however, it is still best practice to keep these pins tied to ground for EMC type testing.
To make the communications line more robust, it is advised to keep DIN pin high when the interface is unused so as to avoid writing to the part when glitches on the SCLK pin occurs.
Thanks and Best Regards,
Are you referring to the C code or the LabView code?
I am referring to the C code, Thanks a lot!
You can download a sample C code in this link: AD7176 - Microcontroller No-OS Driver
Thanks and Best Regards,Chris
If I want to use just AIN0 and AIN1 for fully differential input, other channels are not used;
In the continuous read mode, The MCU just read the data from ADC per conversion;
Do not use the CRC function, the target is high speed and precision sampling of bridge sensor.
My question is:
Which ones register need to be cared?
How about the idle AIN pins are terminated?
What need to do in data communication, be careful the SCLK and DOUT?
Retrieving data ...