matlab_23550/Inu/Src2/551/main/params_pwm24.h

49 lines
1.2 KiB
C
Raw Normal View History

/*
* params_pwm24.h
*
* Created on: 14 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>. 2020 <EFBFBD>.
* Author: yura
*/
#ifndef SRC_MAIN_PARAMS_PWM24_H_
#define SRC_MAIN_PARAMS_PWM24_H_
///////////////////////////////////////////////////////
#if (_SIMULATE_AC==1)
#define FREQ_PWM 100 //450 //800 /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ //3138 // 2360//2477 //
#else
#define FREQ_PWM 450 //800 /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ //3138 // 2360//2477 //
#endif
#define DEF_PERIOD_MIN_MKS 60 // 80 //60 // <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> = 2*TK_MIN_TIME_MKS = 30 <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
// + TK_DEAD_TIME_MKS + 5mks <20><><EFBFBD><EFBFBD><EFBFBD> = 60
#define DEF_PERIOD_MIN_BR_XTICS 165
/////////////////
#define PWM_ONE_INTERRUPT_RUN 1
#define PWM_TWICE_INTERRUPT_RUN 0
//#define PWN_COUNT_RUN_PER_INTERRUPT PWM_ONE_INTERRUPT_RUN // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
#define PWN_COUNT_RUN_PER_INTERRUPT PWM_TWICE_INTERRUPT_RUN // <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
///////////////////////////
#define FREQ_INTERNAL_GENERATOR_XILINX_TMS 1875000 // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>67
//////////////////////
#endif /* SRC_MAIN_PARAMS_PWM24_H_ */