|
内部CSA可以配置为单向,或者双向,一共有两个CSA,内部CSA的GAIN可以配置,挡位有10,20,40,80四种增益选项。
也可以直接关闭内部CSA,CSA的过流保护值和过流保护滤波时间都可以单独设置。
CSA相关寄存器:
DR7808_GENCTRL1
DR7808_HBIDIAG
DR7808_GENCTRL2
DR7808_CSA_OC_SH
DR7808 相关头文件如下:
#ifndef __DR7808_H
#define __DR7808_H
#include "bsp_lpspi.h"
/*
DR7808 SPI每个帧是24bit数据组成
*/
#define DR7808_GENCTRL1 0x00
#define DR7808_GENCTRL2 0x01
#define DR7808_VDS1 0x02
#define DR7808_VDS2 0x03
#define DR7808_CCP_BLK1 0x04
#define DR7808_CCP_BLK2_ACT 0x05
#define DR7808_CCP_BLK2_FW 0x05
#define DR7808_HBMODE 0x06
#define DR7808_PWMSET 0x07
#define DR7808_TPRECHG 0x08
#define DR7808_HBIDIAG 0x09
#define DR7808_ST_ICHG 0x0A
#define DR7808_PWM_PCHG_INIT 0x0A
#define DR7808_PWM_ICHG_ACT 0x0B
#define DR7808_PWM_ICHG_FW 0x0B
#define DR7808_PWM_IDCHG_ACT 0x0C
#define DR7808_PWM_PDCHG_INIT 0x0C
#define DR7808_PWM_ICHGMAX_CCP_BLK3_ACT 0x0D
#define DR7808_PWM_ICHGMAX_CCP_BLK3_FW 0x0D
#define DR7808_TDON_OFF1 0x0E
#define DR7808_TDON_OFF2 0x0F
#define DR7808_TDON_OFF3 0x10
#define DR7808_GENSTAT 0x11
#define DR7808_DSOV 0x12
#define DR7808_HBVOUT_PWMERR 0x13
#define DR7808_EFF_TDON_OFF1 0x14
#define DR7808_EFF_TDON_OFF2 0x15
#define DR7808_EFF_TDON_OFF3 0x16
#define DR7808_TRISE_FALL1 0x17
#define DR7808_TRISE_FALL2 0x18
#define DR7808_TRISE_FALL3 0x19
#define DR7808_DEVID 0x1F
#define DR7808_DRV_LPWR_EN 0x1C
#define DR7808_CSA_OC_SH 0x1D
#define DR7808_MISC 0x1E
#define DR7808_GENSTAT 0x11
#define DR7808_DSOV 0x12
#define DR7808_HBVOUT_PWMERR 0x13
#define DR7808_EFF_TDON_OFF1 0x14
#define DR7808_EFF_TDON_OFF2 0x15
#define DR7808_EFF_TDON_OFF3 0x16
#define DR7808_TRISE_FALL 0x17
#define DR7808_TRISE_FALL2 0x18
#define DR7808_TRISE_FALL3 0x19
#define DR7808_GDF 0x1A
#define DR7808_DEVID 0x1F
#endif