亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? vfmrasti.c

?? 我剛開始學習變編程 ,不是很好,還請各位大俠多多幫助啊
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* ==============================================================================
System Name:  ACI3_2

File Name:	VFMRASTI.C

Description:  Peripheral independent object for implementation of Sensorless Volt/Hertz 
          		control of a Three Phase AC Induction Motor using reactive power
          		MRAS speed estimator.


Originator:		Digital control systems Group - Texas Instruments

Target dependency:	x240/1/2/3/07 
To Select the target device see target.h file.

Note that the PWM/sampling frequency in C system is running at 15 kHz, which 
is different from the PWM/samping frequency in ASM system (i.e., 20 kHz) as 
indicated in the ACI3-2 system documentation. Also, this PWM/samping frequency
in both ASM and C systems are based on x2407 with 40 MHz clock. If the x243 with
20 MHz clock is used, then the PWM/samping frequency may be decreased accordingly.   
			
=====================================================================================
 History:
-------------------------------------------------------------------------------------
 9-15-2000	Release	Rev 1.0
=================================================================================  */

#include <vfmrasti.h>
#include <build.h>

#if (BUILDLEVEL==LEVEL1)
void VFMRAS_TI_Init(VFMRAS_TI_handle v)
{  
/*------------------------------------------------------------------------------
 Notes: 1.  Attributes are conveniently changed here, but this does
            consume cycles twice, 
            (a) in the 'C' boot-up, and then 
            (b) in the execution of this code. Setting up the needed
                constants the declaration of SVGEN svgen = VALUES, 
                rather than the defaults is clearly more effecient.
                This method is more intended for runtime changes.
    2.  There is also a code-size associated with these changes. 
-----------------------------------------------------------------------------*/

/*-----------------------------------------------------------------------------
Setup Volt-Hertz profile parameters.
-----------------------------------------------------------------------------*/
    v->vhzprof.vmin = 6553;        
    v->vhzprof.vmax = 31129;        
    v->vhzprof.fl   = 6553;        
    v->vhzprof.fh   = 16384;        
    v->vhzprof.slope= 10243; 

} /* End: VFMRAS_TI_Init() */
#endif /* (BUILDLEVEL==LEVEL1) */

#if (BUILDLEVEL==LEVEL2)
void VFMRAS_TI_Init(VFMRAS_TI_handle v)
{  
/*------------------------------------------------------------------------------
 Notes: 1.  Attributes are conveniently changed here, but this does
            consume cycles twice, 
            (a) in the 'C' boot-up, and then 
            (b) in the execution of this code. Setting up the needed
                constants the declaration of SVGEN svgen = VALUES, 
                rather than the defaults is clearly more effecient.
                This method is more intended for runtime changes.
    2.  There is also a code-size associated with these changes. 
-----------------------------------------------------------------------------*/

/*------------------------------------------------------------------------------
Configure Attributes for the Space Vector Function Generator
------------------------------------------------------------------------------*/
    v->svgen.freq      = 0x3FFF; 
    v->svgen.freq_max  = 3146;        /* This is based on 15kHz PWM frequency */

/*-----------------------------------------------------------------------------
Setup Volt-Hertz profile parameters.
-----------------------------------------------------------------------------*/
    v->vhzprof.vmin = 6553;        
    v->vhzprof.vmax = 31129;        
    v->vhzprof.fl   = 6553;        
    v->vhzprof.fh   = 16384;        
    v->vhzprof.slope= 10243; 

/*-----------------------------------------------------------------------------
Setup Ramp control parameters.
-----------------------------------------------------------------------------*/
    v->rmpc.rmp_dly_max = 40;        
    v->rmpc.rmp_lo_limit = 0x0000;        
    v->rmpc.rmp_hi_limit = 0x7FFF;   

                                          
}      /* End: VFMRAS_TI_Init() */ 
#endif /* (BUILDLEVEL==LEVEL2) */

#if (BUILDLEVEL==LEVEL3)
void VFMRAS_TI_Init(VFMRAS_TI_handle v)
{  

/*------------------------------------------------------------------------------
 Notes: 1.  Attributes are conveniently changed here, but this does
            consume cycles twice, 
            (a) in the 'C' boot-up, and then 
            (b) in the execution of this code. Setting up the needed
                constants the declaration of SVGEN svgen = VALUES, 
                rather than the defaults is clearly more effecient.
                This method is more intended for runtime changes.
    2.  There is also a code-size associated with these changes. 
-----------------------------------------------------------------------------*/

/*------------------------------------------------------------------------------
Configure Attributes for the Space Vector Function Generator
------------------------------------------------------------------------------*/
    v->svgen.freq      = 0x3FFF; 
    v->svgen.freq_max  = 3146;        /* This is based on 15kHz PWM frequency */

/*-----------------------------------------------------------------------------
Setup Volt-Hertz profile parameters.
-----------------------------------------------------------------------------*/
    v->vhzprof.vmin = 6553;        
    v->vhzprof.vmax = 31129;        
    v->vhzprof.fl   = 6553;        
    v->vhzprof.fh   = 16384;        
    v->vhzprof.slope= 10243; 

/*-----------------------------------------------------------------------------
Setup Ramp control parameters.
-----------------------------------------------------------------------------*/
    v->rmpc.rmp_dly_max = 40;        
    v->rmpc.rmp_lo_limit = 0x0000;        
    v->rmpc.rmp_hi_limit = 0x7FFF;        

                  
}      /* End: VFMRAS_TI_Init() */
#endif /* (BUILDLEVEL==LEVEL3) */

#if (BUILDLEVEL==LEVEL4)
void VFMRAS_TI_Init(VFMRAS_TI_handle v)
{  
/*------------------------------------------------------------------------------
 Notes: 1.  Attributes are conveniently changed here, but this does
            consume cycles twice, 
            (a) in the 'C' boot-up, and then 
            (b) in the execution of this code. Setting up the needed
                constants the declaration of SVGEN svgen = VALUES, 
                rather than the defaults is clearly more effecient.
                This method is more intended for runtime changes.
    2.  There is also a code-size associated with these changes. 
-----------------------------------------------------------------------------*/

/*------------------------------------------------------------------------------
Configure Attributes for the Space Vector Function Generator
------------------------------------------------------------------------------*/
    v->svgen.freq      = 0x3FFF; 
    v->svgen.freq_max  = 3146;        /* This is based on 15kHz PWM frequency */

/*-----------------------------------------------------------------------------
Setup Volt-Hertz profile parameters.
-----------------------------------------------------------------------------*/
    v->vhzprof.vmin = 6553;        
    v->vhzprof.vmax = 31129;        
    v->vhzprof.fl   = 6553;        
    v->vhzprof.fh   = 16384;        
    v->vhzprof.slope= 10243; 

/*-----------------------------------------------------------------------------
Setup Ramp control parameters.
-----------------------------------------------------------------------------*/
    v->rmpc.rmp_dly_max = 40;        
    v->rmpc.rmp_lo_limit = 0x0000;        
    v->rmpc.rmp_hi_limit = 0x7FFF;     

/*-----------------------------------------------------------------------------
Setup Box-car parameters.
-----------------------------------------------------------------------------*/
    v->bc.bc_scaler = 0x7FFF;        

/*-----------------------------------------------------------------------------
Setup ACI MRAS speed estimator parameters.  (based on 15kHz sampling freq)
-----------------------------------------------------------------------------*/
/* 1-Hp WEG  motor */
   	v->mras.K1 = 13113; 		/* Q10 */
   	v->mras.K2 = 1672;			/* Q15 */  
   	v->mras.K3 = 22811;     	/* Q8 */
   	v->mras.K4 = 41;        	/* Q15 */
   	v->mras.K5 = 32750;     	/* Q15 */
   	v->mras.K6 = 1646;      	/* Q15 */
   	v->mras.K7 = 18;        	/* Q15 */
   	v->mras.base_rpm = 28800;   /* Q3 */
   	v->mras.Kp = 0x0050;        /* Q15 */
   	v->mras.Ki_high = 0x001D;   /* Q31 */
   	v->mras.Ki_low = 0xDEAD;    /* Q31 */   	

   
}      /* End: VFMRAS_TI_Init() */
#endif /* (BUILDLEVEL==LEVEL4) */

#if (BUILDLEVEL==LEVEL5)
void VFMRAS_TI_Init(VFMRAS_TI_handle v)
{  

/*------------------------------------------------------------------------------
 Notes: 1.  Attributes are conveniently changed here, but this does
            consume cycles twice, 
            (a) in the 'C' boot-up, and then 
            (b) in the execution of this code. Setting up the needed
                constants the declaration of SVGEN svgen = VALUES, 
                rather than the defaults is clearly more effecient.
                This method is more intended for runtime changes.
    2.  There is also a code-size associated with these changes. 
-----------------------------------------------------------------------------*/

/*------------------------------------------------------------------------------
Configure Attributes for the Space Vector Function Generator
------------------------------------------------------------------------------*/
    v->svgen.freq      = 0x3FFF; 
    v->svgen.freq_max  = 3146;       /* This is based on 15 kHz PWM frequency */

/*-----------------------------------------------------------------------------
Setup Volt-Hertz profile parameters.
-----------------------------------------------------------------------------*/
    v->vhzprof.vmin = 6553;        
    v->vhzprof.vmax = 31129;        
    v->vhzprof.fl   = 6553;        
    v->vhzprof.fh   = 16384;        
    v->vhzprof.slope= 10243; 

/*-----------------------------------------------------------------------------
Setup Ramp control parameters.
-----------------------------------------------------------------------------*/
    v->rmpc.rmp_dly_max = 40;        
    v->rmpc.rmp_lo_limit = 0x0000;        
    v->rmpc.rmp_hi_limit = 0x7FFF;     

/*-----------------------------------------------------------------------------
Setup Box-car parameters.
-----------------------------------------------------------------------------*/
    v->bc.bc_scaler = 0x7FFF;  

/*-----------------------------------------------------------------------------
Setup ACI MRAS speed estimator parameters.   (based on 15kHz sampling freq)
-----------------------------------------------------------------------------*/
/* 1-Hp WEG  motor */
   	v->mras.K1 = 13113; 		/* Q10 */
   	v->mras.K2 = 1672;			/* Q15 */  
   	v->mras.K3 = 22811;     	/* Q8 */
   	v->mras.K4 = 41;        	/* Q15 */
   	v->mras.K5 = 32750;     	/* Q15 */
   	v->mras.K6 = 1646;      	/* Q15 */
   	v->mras.K7 = 18;        	/* Q15 */
   	v->mras.base_rpm = 28800;   /* Q3 */
   	v->mras.Kp = 0x0050;        /* Q15 */
   	v->mras.Ki_high = 0x001D;   /* Q31 */
   	v->mras.Ki_low = 0xDEAD;    /* Q31 */   	


/*-----------------------------------------------------------------------------
Set up PID Controller parameters.
-----------------------------------------------------------------------------*/
    v->pid.Kp_reg1 = 0x2000;                                                      
    v->pid.Ki_high_reg1 = 0x0010;
    v->pid.Ki_low_reg1 = 0xBEEF;
    v->pid.Kd_reg1 = 0x0000;
    v->pid.pid_out_max = 0x0666;
    v->pid.pid_out_min = 0x0000;
            
}      /* End: VFMRAS_TI_Init() */
#endif /* (BUILDLEVEL==LEVEL5) */

/* ************************************************************************** */
/* ************************************************************************** */
 
#if (BUILDLEVEL==LEVEL1)
void VFMRAS_TI_Run(VFMRAS_TI_handle v)
{

/*-----------------------------------------------------------------------------
Connect freq_testing inputs to the VHZPROFILE 
-----------------------------------------------------------------------------*/
    v->vhzprof.freq = v->freq_testing;  

/*-----------------------------------------------------------------------------
Call the compute function for the VHZPROF
-----------------------------------------------------------------------------*/
    v->vhzprof.calc((void *)&v->vhzprof); 	/* Call VHZPROFILE compute function */

}   /* End: VFMRAS_TI_Run() */
#endif /* (BUILDLEVEL==LEVEL1) */

#if (BUILDLEVEL==LEVEL2)         
void VFMRAS_TI_Run(VFMRAS_TI_handle v)
{  

/*-----------------------------------------------------------------------------
Connect freq_testing to the RAMPCNTL input

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91国偷自产一区二区开放时间| 色8久久人人97超碰香蕉987| 不卡av免费在线观看| 欧美伊人久久大香线蕉综合69| 日韩精品中文字幕在线一区| 亚洲欧美日韩久久精品| 蜜臂av日日欢夜夜爽一区| 99久久精品国产精品久久| 欧美一级黄色片| 一区二区三区免费在线观看| 成人免费毛片app| 日韩一区二区免费高清| 亚洲欧美日韩国产综合| 国产一区二区三区在线观看免费| 欧美日韩一级二级| 1区2区3区精品视频| 国产成人丝袜美腿| 精品国产1区二区| 日韩av成人高清| 欧美日本在线播放| 亚洲摸摸操操av| 97国产精品videossex| 日本一二三四高清不卡| 国产成人在线看| 2023国产一二三区日本精品2022| 日韩av一区二| 日韩三区在线观看| 日韩国产欧美在线视频| 欧美日韩国产片| 婷婷中文字幕综合| 精品视频123区在线观看| 亚洲成人动漫在线观看| 欧美日韩国产精品成人| 亚洲图片欧美综合| 欧美日韩在线播| 亚洲线精品一区二区三区八戒| 在线免费观看日本欧美| 一区av在线播放| 欧美午夜一区二区三区 | 91麻豆视频网站| 亚洲欧洲美洲综合色网| 成人一区二区三区视频在线观看| 久久久精品2019中文字幕之3| 国产资源精品在线观看| 久久久久国产精品人| 国产成人av电影在线| 日本一区二区不卡视频| 色综合久久久久网| 亚洲线精品一区二区三区| 5858s免费视频成人| 国产在线日韩欧美| 亚洲国产成人午夜在线一区 | 在线区一区二视频| 亚洲国产精品一区二区尤物区| 欧美日韩精品一二三区| 热久久国产精品| 欧美国产精品中文字幕| 色视频一区二区| 另类成人小视频在线| 久久精品免视看| 91丨porny丨中文| 日韩激情一二三区| 欧美成人欧美edvon| 99久久久免费精品国产一区二区| 亚洲国产精品尤物yw在线观看| 欧美成人vr18sexvr| 99亚偷拍自图区亚洲| 爽好多水快深点欧美视频| 久久免费视频色| 欧美在线观看你懂的| 国产自产高清不卡| 亚洲一卡二卡三卡四卡五卡| 久久午夜国产精品| 在线一区二区三区四区五区 | 99久久精品99国产精品| 午夜久久久久久| 国产精品久久久久久久久久免费看| 色哦色哦哦色天天综合| 美国一区二区三区在线播放| 亚洲人成电影网站色mp4| 精品国产亚洲一区二区三区在线观看| 99久久国产综合精品色伊| 蜜臀久久99精品久久久久宅男 | 成人网在线免费视频| 午夜欧美大尺度福利影院在线看| 中文久久乱码一区二区| 欧美一区二区三区在| 91老师国产黑色丝袜在线| 国产一区二区毛片| 日韩电影一二三区| 一区二区三区免费网站| 国产欧美一区二区三区沐欲| 欧美一区二区精品久久911| 91在线你懂得| 国产成都精品91一区二区三| 免费一区二区视频| 亚洲国产成人av| 亚洲激情欧美激情| 国产精品国产a级| 欧美激情资源网| 精品国产免费视频| 欧美一级免费大片| 欧美日韩一二区| 欧美日韩免费观看一区三区| 97久久精品人人澡人人爽| 高潮精品一区videoshd| 国产河南妇女毛片精品久久久| 久久激情五月婷婷| 日日欢夜夜爽一区| 亚洲va欧美va人人爽午夜| 一区二区三区在线视频观看| 国产精品拍天天在线| 久久久久青草大香线综合精品| 日韩精品一区二| 欧美精品一区二区久久婷婷| 欧美α欧美αv大片| 精品久久久久久久久久久久包黑料| 91精品免费在线| 日韩你懂的在线播放| 精品久久久久99| 2017欧美狠狠色| 国产精品视频看| 国产精品久久网站| 18成人在线观看| 性久久久久久久| 人禽交欧美网站| 国产一区二区三区四区五区美女 | 欧美va亚洲va国产综合| 日韩欧美在线不卡| 日韩欧美一二三| 久久久精品黄色| 国产精品九色蝌蚪自拍| 亚洲欧美日韩小说| 天天免费综合色| 精油按摩中文字幕久久| 国产一区二区三区国产| 成人永久看片免费视频天堂| 91免费国产在线观看| 欧美三级韩国三级日本一级| 日韩视频一区二区三区在线播放| 精品国产不卡一区二区三区| 国产欧美一区二区精品婷婷| 中文字幕一区二区三区色视频| 亚洲精品国产精品乱码不99 | 国产精品一级黄| av中文字幕一区| 欧美顶级少妇做爰| 久久久久久99精品| 一区二区三区四区在线免费观看| 五月天欧美精品| 国产成人精品亚洲日本在线桃色| 一本一本久久a久久精品综合麻豆| 欧美日韩一级二级| 欧美韩国日本综合| 国产精一区二区三区| av成人动漫在线观看| 91麻豆精品国产| 欧美激情综合五月色丁香 | 91久久国产综合久久| 欧美成人在线直播| 亚洲日穴在线视频| 久久精品国产77777蜜臀| 色婷婷综合五月| 久久久久久久久久美女| 亚洲美女偷拍久久| 国产精品一二三区| 欧美一区二区精品在线| 国产精品久久久一本精品| 美女脱光内衣内裤视频久久网站 | 欧美亚洲国产一区二区三区| 久久久久久久精| 蜜臀91精品一区二区三区| 91久久线看在观草草青青| 久久这里都是精品| 日本不卡一区二区三区| 99re免费视频精品全部| 久久综合一区二区| 日韩av在线发布| 欧美日本国产视频| 一区二区三区在线免费播放| 成人一级片在线观看| 精品少妇一区二区三区在线播放| 亚洲综合色区另类av| 成人激情综合网站| 国产欧美一区二区精品性色| 精品在线一区二区| 制服丝袜亚洲精品中文字幕| 一区av在线播放| 色综合久久久久| 18成人在线视频| 91尤物视频在线观看| 国产精品家庭影院| 成人午夜碰碰视频| 国产亚洲美州欧州综合国| 国产在线一区观看| www日韩大片| 国产成人午夜精品影院观看视频 | 国产精品久久久爽爽爽麻豆色哟哟| 美女尤物国产一区| 欧美一区二区三区电影|