Post Go back to editing

Is AD3551R and AD3552R Initialization sequence is same and what data we have to give for the different pattern generations?

Thread Summary

The user asks about the initialization sequence and waveform generation for the AD3551R DAC in STREAM MODE. The final answer confirms the initialization steps and explains that waveform data must be computed externally, with the DAC output ranging from -0.075V to 5.075V for codes 0 to 65535. The update rate is 25 MUPS in Quad SPI DDR mode for a single channel, and the LDAC line must be asserted 7.6 ns after the last data bit for input register writes.
AI Generated Content
Category: Software
Product Number: AD3551R
Software Version: vivado 2022.2

Initially after out of reset DAC is in STREAM MODE

Below is the sequence of initialization of AD3551R DAC.


CH0_OUTPUT_RANGE Register 0x19: Data written for this register 0x001

REFERENCE_CONFIG  Register 0x15: Data written for this register 0x00

STREAM_MODE Register 0x0E : Data written for this register 0x02

TRANSFER_REGISTER: Data written for this register 0x04


After writing to the above registers data is written continuously to the CH0_INPUT_16B (0x33) and followed by stream of data words and followed by a pulse of LDAC line.

Also can i know the data which we have to write for the various waveform generations. Our SPI clock frequency is 50MHz.

Thread Notes

  • Hello  or ,

    Can you help with the customer's query above? Thank you.

    Best regards,
    Paul

  • Initialization is the same for AD3551R and AD3552R. AD3551R has only one channel, therefore the registers and bit fields corresponding to channel 1 do not need to be configured. If written, they are ignored.

    The AD3551R/52R do not have internal memory, therefore the waveform is not stored and it has to be provided sample by sample. Streaming starts with the address of the register followed by a continuous flow of samples: <ADDR> <MSB> <LSB> <MSB> <LSB> ... while CS is kept low.

    If the DAC register is written, the output updates automatically 12 ns after the last data bit is loaded. If the Input register is written, the LDAC line must be asserted at least 7.6 ns after loading the last bit of data and no later than the next word is loaded. The first method is recommended for simplicity. The second method is used when the two channels need to update simultaneously.

    Waveform data must be computed in the controller, knowing that the DAC uses unsigned integers. Using range 1, the output ranges from -0.075V for code 0 to 5.075V for code 65535, with 32768 corresponding to 2.5V output. Therefore, a sinewave must be generated as: 32768 + 32767 * sin (2*pi*f*t). At 50 MHz the update rate for a single channel is 25 MUPS in Quad SPI DDR mode, therefore t = n / 25e6. If two channels are used, the update rate is halved.

  • Hello  ,
    Thanks for your reply,

    For both register configuration and data transmission I am using QSPI with DDR.
    For Configuration of register I am using 16.5 MHz SCLK for QSPI with DDR and for data transmission in stream mode I am using 66 MHz SCLK for QSPI with DDR. Is this works as i am changing the frequency of SCLK for configuration and data transmission.   

    We are giving data to the two channel DAC (AD3552R) from DDS compiler IP, in stream mode with SCLK frequency of 66 MHz
    Following are the registers I am writing for the initialization of AD3552R.

    - 0x1405  : Enable DDR mode for next transaction (I am writing even this register in QSPI with DDR is this acceptable since DDR mode is not enabled                                                                                             by default or should we write this register QSPI without DDR ).
    - 0x1922  :  Set output range to 0-10V

    - 0x0E04  : Set 4 for the length of the loop for the next SPI frame (which will be in streaming mode).

    - 0x0F84  : To prevent the value of the loop of 4 configured above from being retained.

    - 0x0108  : Enable streaming mode

    For Data transmission I am selecting both channels by writing to the register 0x2F  CH_SELECT_16B with 0x03 and writing 16 bit data in stream mode to the register 0x2D , so that we can write the data to both channels simultaneously without using the LDAC signal.
    (If this register is written, the output updates automatically 12 ns after the last data bit is loaded is it applicable for this register also?.)

    If I am writing data to the Input register of the channel 1(0x33) and channel 0(0x35). can the LDAC be asserted low periodically without asserting CS high or should we assert LDAC low only after asserting CS high, in this case how much data can we write it its not the case please specify.

    Initially we are testing for the output range 0 to 10V but actually output range we need is +/- 1.85V.
    As mentioned in the datasheet's custom output voltage span section.

    The CHx_RANGE_OVERRIDE bit is set in the CHx_GAIN reg ister to override the predefined range and offset values.

    VOUT_ZS = 2.5+1.6×RFB×(Offset−GainP)
    VOUT_FS = 2.5+1.6×RFB×(Offset+GainN)

    considering RFB4_y = 6.488125 Kohm and GainP = 0.25 is selected in CHx_GAIN register.

    And considering that we need VOUT_ZS = -1.85V

    Calculated offset = 0.18637




    0.18637 * 1024 = CHx_OFFSET

    Therefore CHx_OFFSET = 190.8 (191).

    The  190.8(191)value and the sign of the offset are written to the CHx_OFFSET register.

     For the  VOUT_FS either the gain or CHx_OFFSET  has to be changed to achieve desired output voltage and how its done.

    If my understanding is wrong or anything wrong with the calculation of VOUT_ZS please specify the right way to calculate it.

    Thank you.

  • There is no problem in switching SCLK frequency on the fly as long as there are not any glitches.

    You are correctly configuring registers 0x14, 0x19, 0x0E, 0x0F and 0x01. Once DDR is configured, you don't need to set the DDR bit again. As for register 0x01, you are setting the default operating mode, so this transaction is redundant.

    It is not clear to me if you want to write the same code for both registers or different codes. To write the same code, use the page register and set the CH_SELECT bits. Otherwise, use the DAC register or the Input register if LDAC is kept permanently low.

    To write the code, you must start from the MSB of channel 1. That is, the address provided at the start of streaming must be 0x2C because DAC data can only be written in descending address order. I am assuming that you would prefer using the DAC register to get the output automatically updated 12 ns after entering the code. Each channel updates independently, not simultaneously.

    To achieve simultaneous update you have to write the Input register and then pulse LDAC at least 7.8 ns after writing the last bit of channel 0.

  • As for the output range, there are two options:

    1. Use 5V range and add the DC offset with an external circuit. This requires a second amplifier in addition to the TIA, but you use most of the 16 bit range, since your signal is 3.7V, that is 75% of the range.
    2. Use a custom range with RFB2, and set N gain and P gain to 1. This shifts the data digitally, reducing amplitude by half. With offset set to -496 you get an output span from -2.58V to 2.58V, so you must scale the DDS codes to achieved the intended +/- 1.85V range.
  • Hello  

    I am asking like 0x1405  : Enable DDR mode 
    Before enabling the DDR Mode itself I am writing this register in QSPI with DDR is it acceptable.

    For custom voltage span 
    The offset register width is 8-bit but how can we write -496.
    For scaling DDS samples should we have to multiply scaling factor 1.85/2.58 = 0.717.

    Can't we get the output voltage +/-1.85V without any scaling?

    Thanks



    • Yes, you can set the DDR bit in DDR mode, but it is not required because its value is preserved. You only need to write this bit to disable DDR.
    • The offset value is broken down in two registers. Register 0x1D contains bits 0-7 and bit 8 is in register 0x1C, together with the sign bit.
    • Digital scaling can only do factors 1/2, 1/4 and 1/8. For finer adjustment you have to change the codes. Alternatively, you can perform analog scaling using an external RFB resistor instead of the integrated resistors. 1.85/0.0016 =  1156.25 ohm
  • Hello  

    For the AD3552R, the internal feedback resistors R-FB provide default gain options of 1, 2, and 4. If a custom gain is required, can external feedback resistors be added in parallel with the internal ones without introducing significant noise or output voltage offset, given that the board is intended for high-precision, low-noise medical applications? What is the recommended method or equation for selecting external resistor values while keeping the added noise within acceptable limits?

    Additionally, for implementing high-precision, ultra-low-noise functionality, is an FPGA-based configuration or a hardware/analog approach more suitable, considering trade-offs in noise performance and signal integrity

    The output voltages we want in the each channel is as mentioned in the below table  .

    I would like your suggestions on the best method to generate desired voltages. Specifically, I am considering two approaches:

    1. Configuration from FPGA Or

    2. Using an external feedback resistor to generate the required voltage

    Noise performance is an important factor in this design.

    Could you please advise which method would be more suitable considering noise immunity? Additionally, after selecting the preferred approach, could you suggest the implementation method?

    For +/-1.85V you had given this calculation what is the reason for dividing with 0.0016
    1.85/0.0016 =  1156.25 ohm
    what is the reason for dividing with 0.0016?

      Thank you

  • You can use external feedback resistors from VOUT of the amplifier to the inverting input where IOUT is connected, and leave the RFB pins unconnected. The external resistors are not drift-compensated with the DAC so there is some loss of precision over temperature. You also give up the benefits of the integrated deglitcher.

    To calculate the external resistors, you must know that the DAC outputs +/- 1.6 mA and the configurable offset current is +/- 0.8 mA in addition to the former one.

    Iout = 0.8 * offset/512 + 1.6 * code / 65536

    Vout = 2.5 - Iout * RFB

    My recommendation for lowest noise is using a TIA with RFB1 followed by a low-pass filter and an output amplifier that removes the DC offset and scales the range.

    To generate the data stream I suggest using an FPGA if you want a continuous playback without phase jumps. If the signal is a sinewave or a sawtooth, you can implement a DDS in the FPGA.

    If you use a microprocessor, you can output the data stream to the DAC using DMA, but there will be a small gap when the buffer loops over the beginning.

  • Hello  
    Thank you for your reply

    The external resistors are not drift-compensated with the DAC so there is some loss of precision over temperature. You also give up the benefits of the integrated deglitcher.



    Since the target application of these DACs are for Medical application Precision is also important and also you recommendation was using external resistor 

    My recommendation for lowest noise is using a TIA with RFB1 followed by a low-pass filter and an output amplifier that removes the DC offset and scales the range.

    Let me know your comments on this.

    Also if we are configuring the voltages from the FPGA side we are using DDS compiler IP which is their in the Vivado can we scale using that IP and still we are not getting how can we configure the voltages from the FPGA please explain us.

    Thank you

More Content

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.