Hi all.
Cant get DRV8704 work. Immediately after I turn anu motor on Im getting a predriver fault error
Configuration:
ConfigRegisters.CTRL.bits.ENBL = 1; ConfigRegisters.CTRL.bits.ISGAIN = drv8704_isgain_5; ConfigRegisters.CTRL.bits.DTIME = drv8704_dead_time_410ns; ConfigRegisters.TORQUE.bits.TORQUE = 0xFF; ConfigRegisters.OFF.bits.TOFF = 0x00; ConfigRegisters.OFF.bits.PWMMODE = 1; ConfigRegisters.BLANK.bits.TBLANK = 0xF0; ConfigRegisters.DECAY.bits.TDECAY = 0x00; ConfigRegisters.DECAY.bits.DECMOD = drv8704_force_fast_decay; ConfigRegisters.DRIVE.bits.OCPTH = drv8704_ocp_treshold_1000mV; ConfigRegisters.DRIVE.bits.OCPDEG = drv8704_ocp_deglitch_8_40us; ConfigRegisters.DRIVE.bits.TDRIVEN = drv8704_drive_sink_2_10us; ConfigRegisters.DRIVE.bits.TDRIVEP = drv8704_drive_source_2_10us; ConfigRegisters.DRIVE.bits.IDRIVEN = drv8704_drive_i_sink_400ma; ConfigRegisters.DRIVE.bits.IDRIVEP = drv8704_drive_i_source_200ma;
Here is what I have on the oscillocsope. Same waveforms on loaded and floating outputs.
Does anybody have a clue?