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 *mp56x5I2c = new tcDspI2c((void*)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 Fri Sep 23 16:33:44 2011 for MityDSP Core by  Doxygen Version 1.6.1
Copyright © 2009, Critical Link LLC, All rights reserved.