MityDSP Documentation Index

tcDspAdc834xMcBsp

Introduction

The tcDspAdc834xMcBsp class may be used to provide access to the MityDSP ADS834x McBsp interface core. The ADS834x interface core marries the MityDSP to a TI ADS834x series 16 bit analog to digital converter.

For hardware interfaces, the ADS834x and McBSP should be connected as follows:

McBSP Port

<ADS1278 Port

Notes

DX

DIN

External 2K Pulldown Resistor required

DR

DOUT

CLKX

DCLK

CLKR

No Connect

FSX

No Connect

FSR

BUSY

Ground

CS

See also:
MityDSP::tcDspAdc834xMcBsp Class Reference

Example

This is a simple example of tcDspAdc834xMcBsp creation and usage:

 {
     tcDspAdc834xMcBsp* mpADC;
     unsigned int sample[32];

     // new up the 834x core.
     mpADC = new tcDspAdc834xMcBsp(MCBSP_DEV0);

     // read samples, print results
     while(true)
     {
        sample = mpADC->GetSamples(sample, 32, NULL, 1);
        for (int i = 0; i < 32; i++)
        {
           printf("[%d] - %d\r\n",i,sample);
        }
        TSK_sleep(1);
     }

     ...

 } 

  
Generated on Fri Sep 23 16:33:44 2011 for MityDSP Core by  Doxygen Version 1.6.1
Copyright © 2009, Critical Link LLC, All rights reserved.