Post Go back to editing

BBB & board eval-AD3542RFMCZ

Category: Software
Product Number: ad3542

Hi,

I try to drive board eval-AD3542RFMCZ with BeagleBone Black industry and I have some troubles.

I connect 4 wires spi bus, /reset, /ldac, /alert, vlogic (3.3V) and gnd to BBB.

I connect power_on_fmc and +12_fmc to external alimentation 12 V (I connect gnd with bbb gnd).

During initialisation, I reset eval board. 

I test spi read and write thanks to SCRATCH_PAD register with success.

I run this code many times :

    reg = AD3542ReadReg(INTERFACE_STATUS_A);
    alert = GPIO_GET(alert);
    if(reg != 0) {
        AD3542WriteReg(INTERFACE_STATUS_A, reg);
    }

Sometimes reg = 0x00, sometimes reg = 0x20 (CLOCK_COUNTING_ERROR = 1), pin alert stay low.

Do you have idea why ?

I try to set value to change dac output but it does not works :

AD3542WriteReg16(CH1_INPUT_16B+1, valueCh1);
reg = AD3542ReadReg(CH1_INPUT_16B+1);
 reg = AD3542ReadReg(CH1_INPUT_16B);

Value read in register are correct, but channel 1 output is 0V.

Did I miss something ?

Thank you for helping

Jerem