Запущен движок алгоритотм NewPWM
This commit is contained in:
parent
4433c7df9c
commit
8c6e7fd7f1
@ -51,7 +51,7 @@
|
|||||||
#define USE_TIM4
|
#define USE_TIM4
|
||||||
//#define USE_TIM5
|
//#define USE_TIM5
|
||||||
//#define USE_TIM6
|
//#define USE_TIM6
|
||||||
#define USE_TIM7
|
//#define USE_TIM7
|
||||||
//#define USE_TIM8
|
//#define USE_TIM8
|
||||||
//#define USE_TIM9
|
//#define USE_TIM9
|
||||||
//#define USE_TIM10
|
//#define USE_TIM10
|
||||||
|
|||||||
@ -46,7 +46,7 @@
|
|||||||
// Parametrs of MCU simulator
|
// Parametrs of MCU simulator
|
||||||
//#define RUN_APP_MAIN_FUNC_THREAD ///< Enable using thread for MCU main() func
|
//#define RUN_APP_MAIN_FUNC_THREAD ///< Enable using thread for MCU main() func
|
||||||
#define DEKSTOP_CYCLES_FOR_MCU_APP 0xFF ///< number of for() cycles after which MCU thread would be suspended
|
#define DEKSTOP_CYCLES_FOR_MCU_APP 0xFF ///< number of for() cycles after which MCU thread would be suspended
|
||||||
#define MCU_CORE_CLOCK 150000000 ///< MCU clock rate for simulation
|
#define MCU_CORE_CLOCK 168000000
|
||||||
|
|
||||||
|
|
||||||
#define PORT_WIDTH 16 ///< width of one port
|
#define PORT_WIDTH 16 ///< width of one port
|
||||||
@ -59,7 +59,6 @@
|
|||||||
#define OUT_PORT_NUMB PORT_NUMB ///< number of output ports
|
#define OUT_PORT_NUMB PORT_NUMB ///< number of output ports
|
||||||
#define DISC_STATES_WIDTH PORT_WIDTH*PORT_NUMB ///< width of discrete states array
|
#define DISC_STATES_WIDTH PORT_WIDTH*PORT_NUMB ///< width of discrete states array
|
||||||
|
|
||||||
#define MCU_CORE_CLOCK 168000000
|
|
||||||
/** WRAPPER_CONF
|
/** WRAPPER_CONF
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -16,6 +16,8 @@ set code_USER=.\App_Wrapper\main.c^
|
|||||||
..\pwm_tools\Core\Src\system_stm32f4xx.c^
|
..\pwm_tools\Core\Src\system_stm32f4xx.c^
|
||||||
..\pwm_tools\Core\Src\stm32f4xx_hal_timebase_tim.c^
|
..\pwm_tools\Core\Src\stm32f4xx_hal_timebase_tim.c^
|
||||||
..\pwm_tools\Core\PWM\pwm.c^
|
..\pwm_tools\Core\PWM\pwm.c^
|
||||||
|
..\pwm_tools\Core\PWM\pwm_tools.c^
|
||||||
|
..\pwm_tools\Core\PWM\pwm_tim_tools.c^
|
||||||
..\pwm_tools\Core\PWM\control.c^
|
..\pwm_tools\Core\PWM\control.c^
|
||||||
..\pwm_tools\Core\Modbus\modbus.c^
|
..\pwm_tools\Core\Modbus\modbus.c^
|
||||||
..\pwm_tools\Core\Modbus\rs_message.c^
|
..\pwm_tools\Core\Modbus\rs_message.c^
|
||||||
|
|||||||
Binary file not shown.
9
mexing.m
9
mexing.m
@ -3,7 +3,13 @@ clear, clc,
|
|||||||
|
|
||||||
set = mex.getCompilerConfigurations('C', 'Selected');
|
set = mex.getCompilerConfigurations('C', 'Selected');
|
||||||
|
|
||||||
Ts = 0.000001;
|
Ts = 0.00001;
|
||||||
|
Unom = 460;
|
||||||
|
Udc = Unom*sqrt(2);
|
||||||
|
freq = 20000;
|
||||||
|
Rload = 2;
|
||||||
|
|
||||||
|
Lload = 10*Rload/freq;
|
||||||
|
|
||||||
delete("*.mexw64")
|
delete("*.mexw64")
|
||||||
delete("*.mexw64.pdb")
|
delete("*.mexw64.pdb")
|
||||||
@ -16,4 +22,3 @@ if status==0
|
|||||||
else
|
else
|
||||||
error('Error!');
|
error('Error!');
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user