this motor config,npp=21,GR= 151

Dependencies:   mbed FastPWM3

Config/hw_config.h

Committer:
wyc136
Date:
2021-05-16
Revision:
56:b050b80bab42
Parent:
54:4c9415402628

File content as of revision 56:b050b80bab42:

#ifndef HW_CONFIG_H
#define HW_CONFIG_H

#define PIN_U PA_10
#define PIN_V PA_9
#define PIN_W PA_8
#define ENABLE_PIN PA_11        // Enable gate drive pin
#define LED         PC_5        // LED Pin
#define I_SCALE 0.02014160156f  // Amps per A/D Count
#define V_SCALE 0.012890625f     // Bus volts per A/D Count
#define DTC_MAX 0.94f          // Max phase duty cycle
#define DTC_MIN 0.0f          // Min phase duty cycle
#define PWM_ARR 0x8CA           /// timer autoreload value
#define DTC_COMP .000f          /// deadtime compensation (100 ns / 25 us)



#endif