Introduction
The tcDspAdc8343 class may be used to provide access to the MityDSP ADC8343 or ADC8344 interface cores. The ADC8343/4 interface cores marries the MityDSP to a Burr Brown / Texas Instruments ADS8343 series (4-channel) or ADS8344 (8-channel) 16-bit analog-to-digital converter.
This class allows for configuring the ADC to provide continuous or burst data colletion data.
- See also:
- MityDSP::tcDspAdc8343 Class Reference
-
MityDSP::tcDspAdcBase High Speed ADC Base Class Reference
Example
This is a simple example of tcDspAdc8343 creation and usage:
{
tcDspAdc8343* mpADC;
int numwords;
volatile unsigned int* lpData;
unsigned int tmp, index;
mpADC = new tcDspAdc8343((void*)BASE_ADDR);
mpADC->Enable(false);
mpADC->SetExtTrigger(false);
mpADC->DrainFIFO();
mpADC->SetBurstCapture(true);
mpADC->SetCaptureLength(512);
mpADC->ClearBurstComplete();
mpADC->SetPack(false);
mpADC->Enable(true);
while(false == mpADC->IsBurstComplete());
mpADC->Enable(false);
numwords = mpADC->GetFIFOLevel();
lpData = mpADC->GetFIFODataPtr();
index = 0;
while(
false == mpADC->GetFIFOLevel(
eeEmpty))
{
tmp = *lpData;
printf("%d - %8.8X\r\n",index,tmp);
}
...
}