I set the driver.
First I config the registers
//1.Use basic sine mode - default reg_val = 0; DRV8308_WriteRegister(DRV8308_REG03, reg_val); //2.Set the FG select to use the TACH input signal + Clock PWM mode reg_val = (0x01<<4) | (0x03<<2); DRV8308_WriteRegister(DRV8308_REG00, reg_val);
Then I set halls according to the table - state 3
if (dir == 0) { HALLU_HI; HALLV_LO; HALLW_HI; } else if (dir == 1) { HALLU_LO; HALLV_HI; HALLW_LO; }
Then I set pins
DIR = 0
ENABLE = 1
And finaly I apply PWM (16khz) to CLKIN and FGINN/TACH pins.
According to the table I should see
UHSG = PWM
ULSG = 0
VHSG = 0
VLSG = 1
WHSG = 0
WLSG = 0
But I see all 0 and only VHSG I see weird signal - amplitude 1 volt, pulse width 5ns,
period between pulses 5ms.
What should I do to fix the problem?