MityDSP Documentation Index
tcDspAdc8343

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;
// new up the ADC8343 core.
mpADC = new tcDspAdc8343((void*)BASE_ADDR);
// burst capture of 512 samples
mpADC->Enable(false);
mpADC->SetExtTrigger(false);
mpADC->SetChannelMask(gnCH0_MASK | gnCH1_MASK);
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);
}
...
}

  
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.