AnsweredAssumed Answered

LTC2625CGN-1 DAC output voltage i am unable to change

Question asked by siddaraju on Aug 1, 2018
Latest reply on Aug 3, 2018 by EngineerDoug

Hi,

 

I have done the programming through STM32F411 development kit through I2C but i am unable change the output voltage actually using same code i can make it work MCP4725 so please help me how can i make it work.

for LTC2625CGN-1 i used  global address also but there is no change in DAC output. program as follows

i have tried different command and all but i am unable to change the output voltage so please send me if you have any sample code.

In hardware there is no issue it have proper voltages and also for  SCL and  SDA i used 4.7K resister for pull up

 

#include "main.h"
#include "stm32f4xx_hal.h"

/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Private variables ---------------------------------------------------------*/
I2C_HandleTypeDef hi2c1;

/* USER CODE BEGIN PV */
/* Private variables ---------------------------------------------------------*/
#define DeviceAddress 0xE6
/* USER CODE END PV */

/* Private function prototypes -----------------------------------------------*/
void SystemClock_Config(void);
static void MX_GPIO_Init(void);
static void MX_I2C1_Init(void);

/* USER CODE BEGIN PFP */
/* Private function prototypes -----------------------------------------------*/

/* USER CODE END PFP */

/* USER CODE BEGIN 0 */
uint8_t buf[5];
/* USER CODE END 0 */

/**
* @brief The application entry point.
*
* @retval None
*/
int main(void)
{
/* USER CODE BEGIN 1 */

/* USER CODE END 1 */

/* MCU Configuration----------------------------------------------------------*/

/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();

/* USER CODE BEGIN Init */

/* USER CODE END Init */

/* Configure the system clock */
SystemClock_Config();

/* USER CODE BEGIN SysInit */

/* USER CODE END SysInit */

/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_I2C1_Init();
/* USER CODE BEGIN 2 */
buf[0]=0x4F;
buf[1]=0x0F;
buf[2]=0xFF;
HAL_I2C_Master_Transmit(&hi2c1,DeviceAddress,buf,3,100);

HAL_Delay(100);
buf[0]=0x34;
buf[1]=0xFF;
buf[2]=0xF0;
HAL_I2C_Master_Transmit(&hi2c1,0x82,buf,3,100);

buf[0]=0x34;
buf[1]=0x16;
buf[2]=0x00;
HAL_I2C_Master_Transmit(&hi2c1,0x82,buf,3,100);

Outcomes