亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
日本不卡的三区四区五区| 欧美成人欧美edvon| 欧美精品视频www在线观看| 91精品国产入口| 久久亚洲春色中文字幕久久久| 国产精品麻豆99久久久久久| 亚洲精品国久久99热| 青椒成人免费视频| 成人黄色软件下载| 欧美亚洲愉拍一区二区| 欧美一区中文字幕| 国产精品久久久久久久久久久免费看 | 欧洲精品在线观看| 欧美一级片免费看| 国产精品精品国产色婷婷| 天天av天天翘天天综合网| 国产精品1区2区3区在线观看| 在线观看中文字幕不卡| 精品久久久久久久一区二区蜜臀| 国产精品人妖ts系列视频| 亚洲第一二三四区| 国产激情一区二区三区四区| 91福利区一区二区三区| 欧美成人精品二区三区99精品| 自拍偷拍国产精品| 久久不见久久见免费视频1| 91丨porny丨户外露出| 日韩欧美激情在线| 亚洲激情欧美激情| 国内成人自拍视频| 欧美日韩国产综合久久| 欧美激情综合五月色丁香小说| 五月天亚洲婷婷| 成人午夜视频免费看| 91精品国产综合久久香蕉的特点| 国产精品久久久爽爽爽麻豆色哟哟 | 精品影视av免费| 91亚洲精华国产精华精华液| 精品日本一线二线三线不卡| 亚洲精品日日夜夜| 高清beeg欧美| 欧美成人一区二区三区| 亚洲观看高清完整版在线观看| 国产精品1024| 91精品国产乱| 亚洲成av人影院| 91在线视频播放| 国产欧美视频在线观看| 久久精品国产99| 欧美久久久久免费| 亚洲精品国产a| 高清成人在线观看| 亚洲精品一区二区三区福利| 肉丝袜脚交视频一区二区| 色美美综合视频| 国产精品国模大尺度视频| 国产一区二区三区蝌蚪| 日韩午夜电影av| 五月综合激情婷婷六月色窝| 一本色道**综合亚洲精品蜜桃冫 | 成人va在线观看| 久久色中文字幕| 美女一区二区三区| 777欧美精品| 视频一区二区欧美| 欧美精品视频www在线观看| 亚洲一区二区三区自拍| 91成人国产精品| 一区二区在线观看视频| 色综合色综合色综合| 国产精品传媒在线| www.在线欧美| 国产精品视频免费看| 成人一区二区三区在线观看| 国产精品午夜在线观看| 成人视屏免费看| 国产精品入口麻豆原神| 成人av网在线| 中文字幕亚洲欧美在线不卡| 不卡一区中文字幕| 中文字幕一区二区在线播放 | 亚洲免费av观看| 色综合久久天天综合网| 一区二区三区四区av| 在线观看亚洲一区| 亚洲成人免费影院| 欧美丰满少妇xxxxx高潮对白 | 欧美成人女星排名| 国产一区二区不卡在线| 欧美激情在线一区二区三区| 99视频一区二区三区| 亚洲精品成人a在线观看| 欧美色视频在线观看| 亚洲国产日韩一级| 日韩一级黄色片| 国产呦精品一区二区三区网站| 国产视频一区在线播放| 99久久99久久久精品齐齐| 一区二区激情视频| 这里只有精品电影| 狠狠色丁香婷婷综合久久片| 久久免费看少妇高潮| 99久久精品国产毛片| 亚洲自拍与偷拍| 欧美一级夜夜爽| 国产成人精品网址| 亚洲激情图片qvod| 91精品久久久久久久99蜜桃| 国产一区二区精品在线观看| 综合欧美一区二区三区| 欧美日韩国产中文| 国产一区二区三区av电影| 亚洲蜜桃精久久久久久久| 91精品国产一区二区三区| 国产一区二区三区蝌蚪| 亚洲精品高清在线观看| 日韩精品中文字幕在线不卡尤物| 国产成人一级电影| 亚洲综合偷拍欧美一区色| 日韩午夜精品视频| 91蜜桃传媒精品久久久一区二区| 天天色 色综合| 日本一区二区三区国色天香 | 日韩在线卡一卡二| 国产三级精品三级在线专区| 在线视频国内一区二区| 久久精品国产在热久久| 亚洲天堂网中文字| 日韩欧美一二三四区| 91网页版在线| 精品一区二区三区免费| 亚洲激情自拍偷拍| 久久久久久久综合色一本| 在线视频欧美精品| 国产成人精品www牛牛影视| 亚洲电影欧美电影有声小说| 日本一区二区三区高清不卡| 777xxx欧美| 97久久精品人人做人人爽50路| 七七婷婷婷婷精品国产| 日韩一区中文字幕| 欧美精品一区男女天堂| 欧美视频一区在线| 成人精品免费视频| 久久国产精品99久久久久久老狼 | 91久久久免费一区二区| 激情丁香综合五月| 亚洲v精品v日韩v欧美v专区| 国产精品色婷婷| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 色爱区综合激月婷婷| 懂色av一区二区夜夜嗨| 奇米888四色在线精品| 亚洲一区二区三区不卡国产欧美| 国产欧美日韩久久| 日韩视频一区二区在线观看| 在线观看成人免费视频| 成人精品鲁一区一区二区| 国产一区二区0| 免费一级欧美片在线观看| 亚洲成人av一区| 亚洲精品日日夜夜| 国产精品传媒入口麻豆| 久久久综合精品| 日韩免费视频线观看| 91精选在线观看| 欧美亚洲综合网| 欧洲在线/亚洲| 色偷偷成人一区二区三区91 | 最新高清无码专区| 中文字幕高清不卡| 国产亚洲综合在线| 久久久亚洲午夜电影| 精品粉嫩超白一线天av| 日韩一级视频免费观看在线| 91精品国模一区二区三区| 欧美精品777| 欧美日韩精品久久久| 欧美亚洲国产怡红院影院| 色综合中文字幕| 一本到不卡精品视频在线观看 | 亚洲综合激情网| 亚洲一二三级电影| 亚洲国产综合人成综合网站| 一区二区三区小说| 亚洲一区二区三区爽爽爽爽爽| 亚洲国产一区二区在线播放| 亚洲综合在线五月| 亚洲国产日韩精品| 五月婷婷综合网| 老司机午夜精品| 激情综合亚洲精品| 国产精品综合在线视频| 国产乱子轮精品视频| 国产成人精品免费视频网站| av一区二区久久| 色综合久久久久综合| 欧美在线观看视频一区二区三区| 欧美亚洲一区二区在线| 777久久久精品|