Hi,
I am trying to perform Electrochemical Impedance Spectroscopy using CN0510 board. I am using my own microcontroller and I did the wiring for SPI etc. I can communicate with AD5941. As mentioned in CN0510 user guide, I try to run BATImpedance example from source code. ( https://github.com/analogdevicesinc/ad5940-examples/blob/master/examples/AD5940_BATImpedance/BATImpedance.c)
In the scheamtic of CN0510 board ADG636 multiplexer is usd to select between calibration resistor and battery. In the AppBATCtrl function from BATImpedance.c there is a line of code that supposed to control ADG636 mux as given :
AD5940_WriteReg(REG_AFE_SWMUX, 1<<0); /* control ADG636 to measure battery */
Althoug comment says it controls ADG636, I think it does not control ADG636, Becasue control pins of mux is connected to GPIO2 of ADG5941. Given line controls the first bit of SWMUX register and it has nothing to do with GPIO2 pin. I also checked the control pins of ADG636 after given line is executed. I saw no change at control pins. And software continues to measure RCAL resistor when it supposed to be measuring battery.
Can someone explain what is the problem here.