1

Dependencies:   mbed-dev-f303 FastPWM3

Committer:
shaorui
Date:
Wed Apr 14 11:46:16 2021 +0000
Revision:
55:d614e29c60c5
Parent:
54:4c9415402628
1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
benkatz 20:bf9ea5125d52 1 #ifndef HW_CONFIG_H
benkatz 20:bf9ea5125d52 2 #define HW_CONFIG_H
benkatz 20:bf9ea5125d52 3
benkatz 20:bf9ea5125d52 4 #define PIN_U PA_10
benkatz 20:bf9ea5125d52 5 #define PIN_V PA_9
benkatz 20:bf9ea5125d52 6 #define PIN_W PA_8
benkatz 22:60276ba87ac6 7 #define ENABLE_PIN PA_11 // Enable gate drive pin
benkatz 37:c0f352d6e8e3 8 #define LED PC_5 // LED Pin
benkatz 22:60276ba87ac6 9 #define I_SCALE 0.02014160156f // Amps per A/D Count
Rushu 54:4c9415402628 10 #define V_SCALE 0.012890625f // Bus volts per A/D Count
Rushu 54:4c9415402628 11 #define DTC_MAX 0.94f // Max phase duty cycle
Rushu 54:4c9415402628 12 #define DTC_MIN 0.0f // Min phase duty cycle
benkatz 27:501fee691e0e 13 #define PWM_ARR 0x8CA /// timer autoreload value
Rushu 52:d4d5e3414865 14 #define DTC_COMP .000f /// deadtime compensation (100 ns / 25 us)
shaorui 55:d614e29c60c5 15 #define BRAKE PC_8 //used for electrical brake
benkatz 20:bf9ea5125d52 16
benkatz 37:c0f352d6e8e3 17
benkatz 20:bf9ea5125d52 18 #endif