MityDSP Documentation Index

tcDspDacTlv5610

Introduction

The tcDspDacTlv5610 class is used to set up and send data to a TI TLV5610 8-channel D-to-A converter. The converter is accessed via a McBSP interface.

See also:
MityDSP::tcDspDacTlv5610 Class Reference
MityDSP::tcDspDacBaseMcBsp McBSP DAC Base Class Reference

Example

This is a simple example of tcDspDacTlv5610 creation and usage:

 {
     // This class controls the MityDSP FPGA, and provides
     // register interfaces for CS control lines, etc.  This
     // class is generally specific to a MityDSP application.

     class tcLatch : public tcDspOutputLatch
     {
         ...         

     public:

         typedef enum
         {
           ...
           eeDAC_CS,     
           ...
         } teOutputs;

         // This method manages the CS output latch for various devices
         int SetOuput(unsigned int ID, unsigned int Value);
        
         ...

     }

     int main (int argc, char *argv[])
     {

        tcLatch    Latch;
        tcDspMcbsp MCBSP(0x018C0000,
                         DATA_DELAY1,         // rx_data_delay
                         WORD_LENGTH_16,      // rx_word_len
                         RXJUST_RJZF,         // rx_justify
                         DATA_DELAY1,         // tx_data_delay
                         WORD_LENGTH_16,      // tx_word_len
                         FSYNC_MODE_EXT,      // rx_fsync
                         FSYNC_MODE_INT,      // tx_fsync
                         CLK_MODE_INT,        // rx_clock
                         CLK_MODE_INT,        // tx_clock
                         FSYNC_POL_HIGH,      // rx_fsync_polarity
                         FSYNC_POL_LOW,       // tx_fsync_polarity
                         CLKR_POL_FALLING,    // rx_clock_polarity 
                         CLKX_POL_FALLING,    // tx_clock_polarity
                         CSTOP_NODELAY);     // clock_stop
        

        tcDspDacTlv5610 DAC(&MCBSP, &Latch, tcLatch::eeDAC_CS);

        ...

        // Set DAC A output to mid range...
        DAC.update(tcDspDacTlv5610::eeDAC_A, 2048);

     } 
 
 } 

  
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.