การเข้าผลสมาบัติ#อารมณ์พระนิพพาน#จึงมุ่งสู่พุทธภูมิ#เธออย่าได้กล่าวคำหยา...
#define UN (400.0) // motor rated voltage #define FN (50.0) // motor nominal frequency #define P (UN/FN) // associate Determining the ratio of voltage to nominal frequency #define T_PWM (0.000255) // PWM signal period - set by the prescaler in the counters #define T_MAX (4.0) // Specify the maximum output voltage period #define T_MIN (0.02) // minimum output voltage #define K_MAX floor (T_MAX/T_PWM) // number of period values for T_MAX #define K_MIN ceil (T_MIN/T_PWM) // number of period values for T_MIN volatile static unsigned int length_tab_sin; // variable containing the number of values in the full // period of the output voltage static unsigned int i = 0; // auxiliary variable volatile static unsigned int main_counter = 0; // variable in the interrupt // ^ every T_PWM period increasing its value by 1 static unsigned int next_value_sin = 0; // variable which value sin should be calculated static double t_param = 50; // parameter specifying the period of the output voltage static f...
ความคิดเห็น
แสดงความคิดเห็น