The tcDspAdc7844 class may be used to provide access to the MityDSP ADS7844 interface core. The ADS7844 interface core marries the MityDSP to a TI ADS7844 series 12 bit analog to digital converter.
For hardware interfaces, the ADS7844 and McBSP should be connected as follows:
McBSP Port | <ADS7844 Port | Notes |
---|---|---|
DX | DIN | External 2K Pulldown Resistor required |
DR | DOUT | |
CLKX | DCLK | |
CLKR | No Connect | |
FSX | No Connect | |
FSR | BUSY | |
Ground | CS |
This class allows for configuring the ADC to provide continuous or burst data colletion data.
This is a simple example of tcDspAdc7844 creation and usage:
{ tcDspAdc7844* mpADC; unsigned int sample; // new up the 7844 core. mpADC = new tcDspAdc7844(MCBSP_DEV0); // read samples, print results while(true) { sample = mpADC->GetSample(0); printf("%d\r\n",sample); TSK_sleep(1); } ... }