49 lines
1.2 KiB
C
49 lines
1.2 KiB
C
/*
|
|
* params_pwm24.h
|
|
*
|
|
* Created on: 14 ôåâð. 2020 ã.
|
|
* Author: yura
|
|
*/
|
|
|
|
#ifndef SRC_MAIN_PARAMS_PWM24_H_
|
|
#define SRC_MAIN_PARAMS_PWM24_H_
|
|
|
|
///////////////////////////////////////////////////////
|
|
#if (_SIMULATE_AC==1)
|
|
#define FREQ_PWM 100 //450 //800 /* ÷àñòîòà ØÈÌà */ //3138 // 2360//2477 //
|
|
#else
|
|
#define FREQ_PWM 450 //800 /* ÷àñòîòà ØÈÌà */ //3138 // 2360//2477 //
|
|
#endif
|
|
|
|
#define DEF_PERIOD_MIN_MKS 60 // 80 //60 // áåðåì ìèíèìàëüíîå âðåìÿ ðàáîòû êëþ÷à = 2*TK_MIN_TIME_MKS = 30 ñ çàïàñîì
|
|
// + TK_DEAD_TIME_MKS + 5mks çàïàñ = 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 // îäíî ïðåðûâàíèå çà ïåðèîä ØÈÌà
|
|
#define PWN_COUNT_RUN_PER_INTERRUPT PWM_TWICE_INTERRUPT_RUN // äâà ïðåðûâàíèå çà ïåðèîä ØÈÌà
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////
|
|
#define FREQ_INTERNAL_GENERATOR_XILINX_TMS 1875000 // âíóòðåííÿÿ ÷àñòîòà ãåíåðàòîðà â øèì ãåíåðàòîðå íà ÏÌ67
|
|
|
|
|
|
//////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* SRC_MAIN_PARAMS_PWM24_H_ */
|