Hello TI,
I try to test Gain control by using PGA113 but it not working on channel CH1 when i try to use CH0, CH0 replicate pre amplifire output as it is there is no any variation on gain
#include <SPI.h>
// set pin 10 as the slave select for the digital pot:
const int slaveSelectPin = 10;
void setup() {
// set the slaveSelectPin as an output:
pinMode(slaveSelectPin, OUTPUT);
// initialize SPI:
SPI.begin();
PGAWrite();
}
void loop() {
}
void PGAWrite() {
// take the SS pin low to select the chip:
digitalWrite(slaveSelectPin, LOW);
// send in the address and value via SPI:
SPI.transfer(0x2A);
SPI.transfer(0x71);
// take the SS pin high to de-select the chip:
digitalWrite(slaveSelectPin, HIGH);
}