MityDSP Documentation Index
tcDspAdc56x5

Introduction

The tcDspAdc56x5 class may be used to provide access to the MityDSP AD56x5 interface core. The AD56x5 interface core marries the MityDSP to an Analog Devices 56x5 series high speed 12 bit digital to analog converter.

See also:
MityDSP::tcDspAdc56x5 Class Reference

Example

This is a simple example of tcDspAd56x5 creation and usage:

{
tcDspAd56x5* mpDAC;
// Create the I2C core used for the interface
tcDspI2c <em>mp56x5I2c = new tcDspI2c((void</em>)I2C_BASE);
// Create the Ad56x5 core.
mpDAC = new tcDspAd56x5(mp56x5I2c, 0x13);
// Set internal voltage reference on
mpDAC->set_vref_internal(true);
// Write a value to channel 0 of the DAC
mpDAC->update(0, 0xFFF, tcDspAd56x5::eeLoadSingle);
...
}

  
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.