MityDSP Documentation Index
tcDspAdc776X

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;
// new up the ADC776X core.
mpADC = new tcDspAdc776X((void*)BASE_ADDR);
// burst capture of 512 samples
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);
}
...
}

  
Generated on Mon Apr 22 2013 11:33:02 for MityDSP Core by  Doxygen Version 1.8.1.1
Copyright © 2009, Critical Link LLC, All rights reserved.