Post Go back to editing

Reading cell voltage from LTC6813IC.

I am using TMS570LS1224 micro controller .and demo circuit 1941D and LTC6813 ic.

i am trying to read voltage .but i am able to read voltage of only few cells.

so, what should i do. 

Parents Reply
  • hii Sgarg,

    when i put PLDAC command then it is showing 0xFF.

    And Pec is coming 0x6c.

    pec_error =0x06

    while (1)
    {
    /* USER CODE END WHILE */
    wakeup_idle(TOTAL_IC);
    //delay_sec(1);
    LTC6813_wrcfg(TOTAL_IC,bms_ic); // writes onto configuration register A
    LTC6813_wrcfgb(TOTAL_IC,bms_ic); // writes onto configuration register B
    //delay_sec(1);
    delay_ms(5);
    LTC6813_clrcell();
    LTC6813_adcv(ADC_CONVERSION_MODE,ADC_DCP,CELL_CH_TO_CONVERT);
    m=LTC681x_pladc();
    //LTC6813_pollAdc();

    LTC6813_rdcv(NO_OF_REG,TOTAL_IC,bms_ic);

    delay_ms(5);

    for (current_ic = 0 ; current_ic < TOTAL_IC; current_ic++)
    {
    for (i=0; i<bms_ic[0].ic_reg.cell_channels; i++)
    {

    voltage[i] =(bms_ic[current_ic].cells.c_codes[i]*0.0001);
    //delay_ms(100);
    }
    }

    }
    /* USER CODE END */
    }

Children
No Data