This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MCF8316A: BUS_CURRENT Register values signed?

Part Number: MCF8316A

Hi

I have 2 qeustion to the data sheet

Table 7-67. BUS_CURRENT Register Field Descriptions

32-bit value indicating DC bus current; I_dcBus (A) =
(BUS_CURRENT / 227) * 1.25

1: is the values signed?

 07086 TI_I2C_bus_read reg_:  Register 0478 -> 03FC8000
07091 TI_I2C_bus_read reg_:  Register 0210 -> 00200009
07096 TI_I2C_bus_read reg_:  Register 0752 -> 023D6B2F
07101 TI_I2C_bus_read reg_:  Register 0410 -> 000BB7BF
07106 TI F_RPM: 10020 V:29 I:0.01 SM:09 MOTOR_CLOSED_LOOP_ALIGNED
07106 current:  0x00000015(21)
07106 volt:  0x0000001D(29)
07308 TI_I2C_bus_read reg_:  Register 0478 -> 03FC8000
07313 TI_I2C_bus_read reg_:  Register 0210 -> 00200009
07318 TI_I2C_bus_read reg_:  Register 0752 -> 032F6416
07323 TI_I2C_bus_read reg_:  Register 0410 -> FFFF80F7
07328 TI F_RPM: 14280 V:29 I:40.00 SM:09 MOTOR_CLOSED_LOOP_ALIGNED
07328 current:  0x0000D4BF(54463)
07328 volt:  0x0000001D(29)

2. Also the Values does not macht my meassured Current at my Power Supply

e,g, Register -> 0.3A

Show on Powersuppy 1.5A

A turbine is running at 28kRPM.

This also happens with the EVAL board!

Any idear?

  • Hi Andreas,

    The values are unsigned. Keep in mind that the BUS_CURRENT equation divides by 2^27, not 227. I see that the two register readings you provided jump from a very small current (7 mA) to an extremely large one (40.00 A), and both of them seem wrong.

    When you take many measurements, what is the value of the BUS_CURRENT register (410h)? Does it jump all over the place or is it steady? Is the turbine running well?

    Regards,

    Hong

  • >>The values are unsigned.

    >>Keep in mind that the BUS_CURRENT equation divides by 2^27, not 227.
    yes. thougth the same.

    double getFtypeRegister(int regNo, double iFactor)
    {
        double my2hoch27 = 134217728.0;
        int32_t dwWord = dumpRegister(regNo);
        double dVal = dwWord;    
        double ret = (dVal / my2hoch27) * iFactor  ;   // 32-bit value indicating DC bus current; I_dcBus (A) =(BUS_CURRENT / 227) * 1.25
        return ret;
    }

        double multFaktorI = 1.25;
        double fBusCurrent = getFtypeRegister(TI_MCF8316A_BUS_CURRENT,multFaktorI);  // 410

    >>I see that the two register readings you provided jump from a very small current (7 mA) to an extremely large one (40.00 A), and both of them seem wrong.
    the 7mA can be ok.
    This happens when I increase from 5000 to 15000 rpm for 1..2 sec..
    when it reaches the desired speed... ( there is a litte over shoot...)
    the next sample I see 40A .... ( but expect some small negative current...?)

    >When you take many measurements, what is the value of the BUS_CURRENT register (410h)? Does it jump all over the place or is it steady?

    Speed up.... see above...
    I check the current each sec.... and stopped...( now ignore if high bit is set...)

    07101 TI_I2C_bus_read reg_:  Register 0410 -> 000BB7BF

    2 sec later...

    07323 TI_I2C_bus_read reg_:  Register 0410 -> FFFF80F7

    Goal was 9000 but now 10000 rpm ... so negative would be possilbe! 40A makes no sense!

    >Is the turbine running well?

    Yes till 28 RPM.... -:) working on that...Overtemp....
    All below that is working fine. Runs 1..2 hours with no problem
    Only when I change speed.

    But the current I can't explain.

    The same with my hardware.... The current does not match any DC Current.
    at DC Power supply you see 0.88 A
    The App shows 0.2A

  • Hi Andreas,

    Since the DC bus current is referring to the power supply current, and the devices on the PCB need some quiescent current to run, the DC bus current should be positive the whole time.

    May you upload your registers in the state where the current is incorrect? Also, include the bus current in the GUI and on the power supply.

    Regards,

    Hong

  • Hi

    >> May you upload your registers in the state where the current is incorrect?

    Unclear: what do you mean with upload?
    I just read the register?

    >Also, include the bus current in the GUI and on the power supply.
    This is static. So the DC Current from the IC: 0.3A 
    From Power supply 1.5A.

    This stays all the time.

    BR

    Andreas

  • Hi Andreas,

    In the GUI on the top left of the screen, you can use File > Save Registers to save a JSON file of your register settings. May you save them to your computer and then upload them here?

    Best,

    Hong

  • hi,

    yes I know how to save... only appending here does not work as .json file. I renated to TXT then I can add.

    {
      "signature": "oneui-register-data",
      "data": [
        [
          {
            "idx": 0,
            "id": "isd_config",
            "value": "0x44638C20"
          },
          {
            "idx": 1,
            "id": "rev_drive_config",
            "value": "0x283AF064"
          },
          {
            "idx": 2,
            "id": "motor_startup1",
            "value": "0x0AC403D0"
          },
          {
            "idx": 3,
            "id": "motor_startup2",
            "value": "0x12866000"
          },
          {
            "idx": 4,
            "id": "closed_loop1",
            "value": "0x545C01B4"
          },
          {
            "idx": 5,
            "id": "closed_loop2",
            "value": "0x47BEAD22"
          },
          {
            "idx": 6,
            "id": "closed_loop3",
            "value": "0x24800002"
          },
          {
            "idx": 7,
            "id": "closed_loop4",
            "value": "0x298A4E10"
          },
          {
            "idx": 8,
            "id": "speed_profiles1",
            "value": "0x00000000"
          },
          {
            "idx": 9,
            "id": "speed_profiles2",
            "value": "0x00000000"
          },
          {
            "idx": 10,
            "id": "speed_profiles3",
            "value": "0x00000000"
          },
          {
            "idx": 11,
            "id": "speed_profiles4",
            "value": "0x00000000"
          },
          {
            "idx": 12,
            "id": "speed_profiles5",
            "value": "0x00000000"
          },
          {
            "idx": 13,
            "id": "speed_profiles6",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "fault_config1",
            "value": "0x3FE80206"
          },
          {
            "idx": 1,
            "id": "fault_config2",
            "value": "0x74000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "pin_config",
            "value": "0x00000000"
          },
          {
            "idx": 1,
            "id": "device_config1",
            "value": "0x00100002"
          },
          {
            "idx": 2,
            "id": "device_config2",
            "value": "0x0000B000"
          },
          {
            "idx": 3,
            "id": "peri_config1",
            "value": "0x40000000"
          },
          {
            "idx": 4,
            "id": "gd_config1",
            "value": "0x0C000100"
          },
          {
            "idx": 5,
            "id": "gd_config2",
            "value": "0x00200000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "ana_trim3",
            "value": "0x48004800"
          },
          {
            "idx": 1,
            "id": "ana_trim4",
            "value": "0x00000000"
          },
          {
            "idx": 2,
            "id": "ana_trim5",
            "value": "0x80000013"
          },
          {
            "idx": 3,
            "id": "ana_trim6",
            "value": "0x00000000"
          },
          {
            "idx": 4,
            "id": "ana_trim7",
            "value": "0x00000000"
          },
          {
            "idx": 5,
            "id": "ana_trim8",
            "value": "0x800056A4"
          },
          {
            "idx": 6,
            "id": "ana_trim9",
            "value": "0x003DD79D"
          },
          {
            "idx": 7,
            "id": "ana_trim10",
            "value": "0xD36F113B"
          }
        ],
        [
          {
            "idx": 0,
            "id": "int_algo_1",
            "value": "0x00B3407D"
          },
          {
            "idx": 1,
            "id": "int_algo_2",
            "value": "0x000002E1"
          }
        ],
        [
          {
            "idx": 0,
            "id": "gate_driver_fault_status",
            "value": "0x00000000"
          },
          {
            "idx": 1,
            "id": "controller_fault_status",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "algo_status",
            "value": "0x15F20000"
          },
          {
            "idx": 1,
            "id": "mtr_params",
            "value": "0x00000000"
          },
          {
            "idx": 2,
            "id": "algo_status_mpet",
            "value": "0x0A000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "dev_ctrl",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "algo_ctrl1",
            "value": "0x80000000"
          },
          {
            "idx": 1,
            "id": "algo_ctrl2",
            "value": "0x00000000"
          },
          {
            "idx": 2,
            "id": "current_pi",
            "value": "0x0005662D"
          },
          {
            "idx": 3,
            "id": "speed_pi",
            "value": "0x00000000"
          },
          {
            "idx": 4,
            "id": "dac_1",
            "value": "0x00000000"
          },
          {
            "idx": 5,
            "id": "dac_2",
            "value": "0x00000000"
          }
        ],
        [
          {
            "idx": 0,
            "id": "algorithm_state",
            "value": "0x00000000"
          },
          {
            "idx": 1,
            "id": "fg_speed_fdbk",
            "value": "0x00B1A786"
          },
          {
            "idx": 2,
            "id": "bus_current",
            "value": "0xFFFAF67A"
          },
          {
            "idx": 3,
            "id": "phase_current_a",
            "value": "0xFFF60000"
          },
          {
            "idx": 4,
            "id": "phase_current_b",
            "value": "0x00070000"
          },
          {
            "idx": 5,
            "id": "phase_current_c",
            "value": "0x00030000"
          },
          {
            "idx": 6,
            "id": "csa_gain_feedback",
            "value": "0x00010003"
          },
          {
            "idx": 7,
            "id": "voltage_gain_feedback",
            "value": "0x00000000"
          },
          {
            "idx": 8,
            "id": "vm_voltage",
            "value": "0x046E0000"
          },
          {
            "idx": 9,
            "id": "phase_voltage_va",
            "value": "0x00045483"
          },
          {
            "idx": 10,
            "id": "phase_voltage_vb",
            "value": "0x007A1C0D"
          },
          {
            "idx": 11,
            "id": "phase_voltage_vc",
            "value": "0x00261AE8"
          },
          {
            "idx": 12,
            "id": "sin_commutation_angle",
            "value": "0xF85225B0"
          },
          {
            "idx": 13,
            "id": "cos_commutation_angle",
            "value": "0x02355AAE"
          },
          {
            "idx": 14,
            "id": "ialpha",
            "value": "0xFFCF0000"
          },
          {
            "idx": 15,
            "id": "ibeta",
            "value": "0x00A6DAAE"
          },
          {
            "idx": 16,
            "id": "valpha",
            "value": "0x012E51BC"
          },
          {
            "idx": 17,
            "id": "vbeta",
            "value": "0x00562FDA"
          },
          {
            "idx": 18,
            "id": "id",
            "value": "0xFF533C84"
          },
          {
            "idx": 19,
            "id": "iq",
            "value": "0xFFEDDF3B"
          },
          {
            "idx": 20,
            "id": "vd",
            "value": "0x0000BA49"
          },
          {
            "idx": 21,
            "id": "vq",
            "value": "0x013ABE3A"
          },
          {
            "idx": 22,
            "id": "iq_ref_rotor_align",
            "value": "0x00000000"
          },
          {
            "idx": 23,
            "id": "speed_ref_open_loop",
            "value": "0x00000000"
          },
          {
            "idx": 24,
            "id": "iq_ref_open_loop",
            "value": "0x0185FC01"
          },
          {
            "idx": 25,
            "id": "speed_ref_closed_loop",
            "value": "0x00000000"
          },
          {
            "idx": 26,
            "id": "id_ref_closed_loop",
            "value": "0x00000000"
          },
          {
            "idx": 27,
            "id": "iq_ref_closed_loop",
            "value": "0x0012C7B0"
          },
          {
            "idx": 28,
            "id": "isd_state",
            "value": "0x00000005"
          },
          {
            "idx": 29,
            "id": "isd_speed",
            "value": "0x0158079A"
          },
          {
            "idx": 30,
            "id": "ipd_state",
            "value": "0x00000000"
          },
          {
            "idx": 31,
            "id": "ipd_angle",
            "value": "0x00000000"
          },
          {
            "idx": 32,
            "id": "ed",
            "value": "0x00000000"
          },
          {
            "idx": 33,
            "id": "eq",
            "value": "0x00000000"
          },
          {
            "idx": 34,
            "id": "speed_fdbk",
            "value": "0x00000000"
          },
          {
            "idx": 35,
            "id": "theta_est",
            "value": "0x00000000"
          }
        ]
      ]
    }