The operation I need is:
Code: Select all
while(samplesAcquired < numSmpls) {
digitalWrite(5,HIGH);
ets_delay_us(CNVRT_TIME);// Spec Sheet says we need 8.8uSec to convert
digitalWrite(5,LOW);
SPI_GetUInt16(&this->ads8866Data);//Apply bias here so that signal is ready for window
glbAcqBuff.intArray[samplesAcquired] = ads8866Data;
ets_delay_us(ticksPerSample);
samplesAcquired++;
}
//in VSPI_init()
devcfg.spics_io_num = -1;//=PIN_NUM_CS; Disable CS0 in VSPI //CS pin
//In board setup Enable CS as GPIO
pinMode(pinNum, INPUT);
digitalWrite((gpio_num_t)pinNum,LOW);
The simple solution is to use another pin, but I am using every pin on the board and cannot afford a unused pin.
Is there some other controls for the CS pin or a way to disable it and give me manual control?