AnsweredAssumed Answered

FMCOMMS2  No-OS Software,question about DAC selecting the source of data

Question asked by l312361206 on Oct 29, 2015
Latest reply on Oct 29, 2015 by l312361206

Hi everyone:

     i am using the No-OS Software on FMCOMMS2,ZC702 platform, I have seen DAC can transmit data with 10 sources:

enum dds_data_select {

    DATA_SEL_DDS,

    DATA_SEL_SED,

    DATA_SEL_DMA,

    DATA_SEL_ZERO,    // 3 /* OUTPUT 0 */

    DATA_SEL_PN7,

    DATA_SEL_PN15,

    DATA_SEL_PN23,

    DATA_SEL_PN31,

    DATA_SEL_LB, /* loopback data (ADC) */

    DATA_SEL_PNXX, } /* (Device specific) */

 

The function dac_init() in No-os Software only provides two sources: DDS and DMA , I have noticed function dac_datasel(),it can write register REG_CHAN_CNTRL_7 .

 

Could I only add code  like dac_datasel(phy, -1, DATA_SEL_PN7) in dac_init()  to select data source  and do not have to write other register to control its behaviour?

Outcomes