Fork and fix for mwork
Dependencies: mbed-dev-f303 FastPWM3 millis
Diff: DRV8323/DRV.cpp
- Revision:
- 53:349304b6d937
- Parent:
- 45:26801179208e
- Child:
- 55:fee62d8fd8fb
--- a/DRV8323/DRV.cpp Thu Feb 27 00:13:18 2020 +0000 +++ b/DRV8323/DRV.cpp Fri Feb 28 23:05:58 2020 +0000 @@ -75,22 +75,22 @@ if(val1 & (1<<10)){printf("\n\rFAULT\n\r");} - if(val1 & (1<<9)){printf("VDS_OCP\n\r");} - if(val1 & (1<<8)){printf("GDF\n\r");} - if(val1 & (1<<7)){printf("UVLO\n\r");} - if(val1 & (1<<6)){printf("OTSD\n\r");} - if(val1 & (1<<5)){printf("VDS_HA\n\r");} - if(val1 & (1<<4)){printf("VDS_LA\n\r");} - if(val1 & (1<<3)){printf("VDS_HB\n\r");} - if(val1 & (1<<2)){printf("VDS_LB\n\r");} - if(val1 & (1<<1)){printf("VDS_HC\n\r");} - if(val1 & (1)){printf("VDS_LC\n\r");} + if(val1 & (1<<9)){printf("VDS_OCP\n\r");} // VDS monitor overcurrent fault condition + if(val1 & (1<<8)){printf("GDF\n\r");} // Indicates gate drive fault condition + if(val1 & (1<<7)){printf("UVLO\n\r");} // undervoltage lockout fault condition + if(val1 & (1<<6)){printf("OTSD\n\r");} // overtemperature shutdown + if(val1 & (1<<5)){printf("VDS_HA\n\r");} // VDS overcurrent fault on the A high-side MOSFET + if(val1 & (1<<4)){printf("VDS_LA\n\r");} // s VDS overcurrent fault on the A low-side MOSFET + if(val1 & (1<<3)){printf("VDS_HB\n\r");} // VDS overcurrent fault on the B high-side MOSFET + if(val1 & (1<<2)){printf("VDS_LB\n\r");} // VDS overcurrent fault on the B low-side MOSFET + if(val1 & (1<<1)){printf("VDS_HC\n\r");} // VDS overcurrent fault on the C high-side MOSFET + if(val1 & (1)){printf("VDS_LC\n\r");} // VDS overcurrent fault on the C low-side MOSFET - if(val2 & (1<<10)){printf("SA_OC\n\r");} - if(val2 & (1<<9)){printf("SB_OC\n\r");} - if(val2 & (1<<8)){printf("SC_OC\n\r");} - if(val2 & (1<<7)){printf("OTW\n\r");} - if(val2 & (1<<6)){printf("CPUV\n\r");} + if(val2 & (1<<10)){printf("SA_OC\n\r");} // overcurrent on phase A sense amplifier (DRV8323xS) + if(val2 & (1<<9)){printf("SB_OC\n\r");} // overcurrent on phase B sense amplifier + if(val2 & (1<<8)){printf("SC_OC\n\r");} // overcurrent on phase C sense amplifier + if(val2 & (1<<7)){printf("OTW\n\r");} // overtemperature warning + if(val2 & (1<<6)){printf("CPUV\n\r");} // charge pump undervoltage fault condition if(val2 & (1<<5)){printf("VGS_HA\n\r");} if(val2 & (1<<4)){printf("VGS_LA\n\r");} if(val2 & (1<<3)){printf("VGS_HB\n\r");}