Introduction
The tcDspAdc776X class may be used to provide access to the MityDSP ADC776X interface core. The ADC776X interface core marries the MityDSP to a Analog Devices 776X series high speed 24 bit sigma delta analog to digital converter.
This class allows for configuring the ADC to provide continuous or burst data colletion data.
- See also:
- MityDSP::tcDspAdc776X Class Reference
-
MityDSP::tcDspAdc776xBase High Speed ADC Base Class Reference
Example
This is a simple example of tcDspAdc776X creation and usage:
{
tcDspAdc776X* mpADC;
int numwords;
volatile unsigneRENd int* lpData;
unsigned int tmp, index;
mpADC = new tcDspAdc776X((void*)BASE_ADDR);
mpADC->Enable(false);
mpADC->DrainFIFO();
mpADC->SetBurstCapture(true);
mpADC->SetCaptureLength(512);
mpADC->ClearBurstComplete();
mpADC->Enable(true);
mpADC->SetPack(false);
while(false == mpADC->IsBurstComplete());
mpADC->Enable(false);
numwords = mpADC->GetFIFOLevel();
lpData = mpADC->GetFIFODataPtr();
index = 0;
while(
false == mpADC->GetFIFOLevel(
eeEmpty))
{
tmp = *lpData & 0xFFFFFF00;
printf("%d - %8.8X\r\n",index,tmp);
}
...
}