Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-dev-f303 FastPWM3
hw_config.h
00001 #ifndef HW_CONFIG_H 00002 #define HW_CONFIG_H 00003 00004 #define PIN_U PA_8 00005 #define PIN_V PA_9 00006 #define PIN_W PA_10 00007 #define ENABLE_PIN PB_5 // Enable gate drive pin 00008 #define LED PB_0 // LED Pin 00009 #define I_SCALE 0.080566406f // Amps per A/D Count 3.3v/4096/20/0.0005 00010 // #define V_SCALE 0.00884f // Bus volts per A/D Count 00011 #define V_SCALE 0.015087891 // Bus volts per A/D count, 3.3/4096*(39+2.2)/2.2 00012 #define DTC_MAX 0.95f // Max phase duty cycle 00013 #define DTC_MIN 0.05f // Min phase duty cycle 00014 #define PWM_ARR 0x8CA /// timer autoreload value 00015 00016 00017 00018 #endif
Generated on Wed Jul 13 2022 15:44:18 by
1.7.2