AD5274 user user guide with stm32 controller

Hi,

I am unable to find the initialization sequence for AD5274 with the stm32.

Please provide me any user guide to use the AD5274 along with the stm32 controller (non os).

Thank you.

  • 0
    •  Analog Employees 
    on Sep 21, 2018 5:09 AM over 2 years ago

    Hi,

    We do not provide user guide for various micro-controllers. However, you could use the User guide in the link below as a reference and design your circuit to interface with STM controller.

    www.analog.com/.../UG-094.pdf

    If you have any specific questions regarding the interface i can help you out.

    Regards,

    Koushik

  • Thank you.

    i did one simple steps as follows.

    1. tried to set the control register using 0x1c02 i.e allowing wiper position through a digital interface.

    2. tried to read the contained of control register using 0x2000

    but not getting same value. got different value every time.

    code snippet as belows:

    {

        uint8_t ucTxBuffer[3] = {ZERO};
        volatile HAL_StatusTypeDef Ret = HAL_OK;

        ucTxBuffer[0] = 0x1c; /// Command number 7.
        ucTxBuffer[1] = 0x02; /// Allow update of wiper position through a digital interface

        Ret = HAL_I2C_Master_Transmit(HVDC_DAC_I2C_HANDLER,
                    HVDC_DAC_I2C_SLAVE_ADDRESS, ucTxBuffer, 2, 1000 );
        if(HAL_OK ==  Ret)
        {

            ucTxBuffer[0] = 0x20; /// Command number 8.
            ucTxBuffer[1] = 0x00;

            Ret = HAL_I2C_Master_Receive(HVDC_DAC_I2C_HANDLER,
                        HVDC_DAC_I2C_SLAVE_ADDRESS, ucTxBuffer, 2, 1000 );
            HAL_Delay(10);
            if(HAL_OK ==  Ret)
            {
                ;
            }

         }

    }

    Please help me to move forward.

    Thank you.

  • 0
    •  Analog Employees 
    on Oct 4, 2018 2:28 PM over 2 years ago in reply to bhushan.b@tataelxsi.co.in

    Hi,

    I do not have the expertise on STM controller, so i cant help you out with the code. 

    Regards,

    Koushik