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

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

?? vfmrasti.c

?? 本程序來自TI公司網站原程序,其功能是通過傳統的V/F控制算法并加上對電機的轉子速度辨識即無速度傳感器控制來實現對感應電機的控制,控制程序可以采用.asm也可以采用.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一区二区三区免费野_久草精品视频
视频一区在线播放| 久久精品国产一区二区三 | 一区二区三区中文字幕在线观看| 99久久精品久久久久久清纯| 欧美激情一区二区三区在线| 国产69精品久久777的优势| 欧美极品美女视频| 日本精品视频一区二区三区| 亚洲电影视频在线| 日韩精品一区二区三区视频播放 | 国产精品天干天干在观线| 日韩av中文字幕一区二区三区 | 中文字幕视频一区二区三区久| 成人午夜电影久久影院| 国产精品卡一卡二卡三| 欧美在线色视频| 久久精品国产免费| 中文字幕一区二区三中文字幕| 欧美亚洲国产bt| 久久99国产精品免费| 国产精品毛片高清在线完整版| 在线免费视频一区二区| 免费欧美日韩国产三级电影| 国产亚洲va综合人人澡精品| 日本高清不卡视频| 国产原创一区二区| 亚洲综合色在线| 久久人人97超碰com| 91美女在线视频| 久久99日本精品| 一区二区三区欧美视频| 日韩欧美高清dvd碟片| 99re这里只有精品视频首页| 日韩高清不卡一区| 亚洲欧美电影一区二区| 欧美一区二区日韩| 91在线一区二区三区| 免费亚洲电影在线| 一区二区三区在线视频播放| www国产亚洲精品久久麻豆| 91搞黄在线观看| 国产99久久久国产精品免费看| 日韩精品一二三| 亚洲色欲色欲www| 久久久久久久综合色一本| 欧美日韩在线综合| 成人av免费在线观看| 美女看a上一区| 无码av中文一区二区三区桃花岛| 国产精品卡一卡二| 久久久国产午夜精品| 91精品国产色综合久久不卡蜜臀 | 国产suv精品一区二区6| 亚洲视频一区在线| 日韩天堂在线观看| 色婷婷av一区二区三区gif| 国产精品国产精品国产专区不蜜 | 一本久道久久综合中文字幕| 国产精品996| 麻豆91精品视频| 亚洲国产精品嫩草影院| 中文字幕五月欧美| 亚洲国产电影在线观看| 精品国精品自拍自在线| 欧美日本国产一区| 欧美手机在线视频| 欧美日韩在线精品一区二区三区激情| 成人激情小说乱人伦| 丁香婷婷综合五月| 国产精品18久久久久久久网站| 麻豆一区二区三| 蜜臀av一级做a爰片久久| 日韩高清国产一区在线| 日韩av不卡一区二区| 日韩精品乱码免费| 视频一区二区三区入口| 午夜欧美一区二区三区在线播放| 久久久久久久综合| 久久女同性恋中文字幕| 国产91在线看| 欧美一级高清片| 欧美日本高清视频在线观看| 欧美日韩国产在线播放网站| 在线观看亚洲精品| 欧美三片在线视频观看 | 97精品视频在线观看自产线路二| 国产二区国产一区在线观看| 成人午夜视频免费看| av一区二区三区| 日本高清免费不卡视频| 欧美性欧美巨大黑白大战| 欧美久久一二区| 日韩精品中文字幕一区二区三区| 日韩精品中午字幕| 国产视频在线观看一区二区三区 | 91精品国产色综合久久久蜜香臀| 日韩一区二区免费高清| 久久只精品国产| 亚洲人成在线播放网站岛国| 午夜精品视频在线观看| 国产不卡视频在线观看| 91精品国产品国语在线不卡| 成人影视亚洲图片在线| 91香蕉视频在线| 在线视频你懂得一区| 欧美伦理影视网| 欧美精品一区二区久久婷婷 | 国产精品456| 97久久超碰国产精品| 欧美日韩一级视频| 久久免费看少妇高潮| 亚洲精品乱码久久久久久 | 精品一区二区日韩| 欧美不卡激情三级在线观看| 久久亚洲二区三区| 亚洲黄色av一区| 激情六月婷婷久久| 91福利在线观看| 国产视频一区不卡| 亚洲成年人网站在线观看| 国产一区二区影院| 欧美综合欧美视频| 久久久精品影视| 午夜精品福利一区二区三区蜜桃| 成a人片国产精品| 亚洲另类春色国产| 亚洲欧美另类小说| 极品美女销魂一区二区三区免费| 97se亚洲国产综合在线| 日韩精品在线看片z| 亚洲在线中文字幕| 成人精品视频一区| 日韩午夜中文字幕| 亚洲第一福利视频在线| 成人黄色电影在线| 精品sm在线观看| 日韩专区欧美专区| 色av成人天堂桃色av| 欧美激情一区二区三区不卡| 天天亚洲美女在线视频| 91污在线观看| 国产精品丝袜久久久久久app| 日本亚洲天堂网| 欧美日韩国产三级| 一区二区三区视频在线看| 成人免费视频国产在线观看| 欧美xxxx老人做受| 喷水一区二区三区| 欧美一区二区三区四区久久| 亚洲在线视频网站| 色婷婷国产精品久久包臀| 国产精品久久久久三级| 国产一区欧美二区| 蜜臀av性久久久久蜜臀aⅴ四虎 | 欧美肥妇free| 一区二区高清视频在线观看| av在线一区二区| 国产精品白丝在线| 不卡视频一二三四| 国产精品高清亚洲| 成人av资源在线| 中文字幕视频一区二区三区久| 国产成人精品免费网站| 26uuu色噜噜精品一区| 免费三级欧美电影| 欧美www视频| 精彩视频一区二区| 久久久影院官网| 国产精品主播直播| 久久精品综合网| 成人av在线资源| ...av二区三区久久精品| av资源网一区| 亚洲综合久久久| 欧美欧美午夜aⅴ在线观看| 午夜视频在线观看一区| 制服丝袜亚洲播放| 九九国产精品视频| 国产日产欧美精品一区二区三区| 国产精品欧美极品| 日韩视频免费观看高清在线视频| 久久精品国产第一区二区三区| 午夜欧美2019年伦理 | 欧美午夜精品久久久久久孕妇| 伊人婷婷欧美激情| 7777精品伊人久久久大香线蕉超级流畅 | 久久电影网站中文字幕| 欧美精品一区二区蜜臀亚洲| 成人一区二区三区中文字幕| 亚洲日本免费电影| 欧美高清一级片在线| 国产在线视视频有精品| 国产精品欧美精品| 欧美日韩一区中文字幕| 韩国女主播一区| 亚洲欧美日韩久久| 日韩一区二区麻豆国产| 国产1区2区3区精品美女| 亚洲精品国产a久久久久久| 日韩一卡二卡三卡|