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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? nofeedback.asm

?? 無feedevb的異步電機(jī)vf控制的dsp調(diào)試程序
?? ASM
?? 第 1 頁 / 共 2 頁
字號:
*** This program is used to control the induction motor at 5Hz***
		.include	"f2407.h"
		.include	"vector.h"
		
KICK_DOG	.macro
		LDP	#00E0h
		SPLK	#05555h,WDKEY
		SPLK	#0AAAAh,WDKEY
		LDP	#0h
		.endm
		
		.sect ".table" 
sintab      .include   sin200.tab ; sine wave for 3-phase voltage input  

		 .data
*** axis transformation constants
sqrt3inv .set 093dh 		;1/sqrt(3) 4.12 format
sqrt32 	 .set 0ddbh 		;sqrt(3)/2 4.12 format 

*** pwm modulation constants
	
pwmprd 	.set 1500	;pwm period=2*1500 -> tc=2*1500*33ns=100us (33ns resolution)


*** vqr and vdr limitations
vbase 	.set 01000h 		;bemf at base speed=87V
vdc     .set  0cdfh             ;Vdc_ref=70V,pu=0.8046,Q12=0cdfh
		.bss tmp,1 	;temporary variable 
		.bss tmp1,1
		.bss tmptmp,1
		.bss tmpA,1
		.bss indexA,1
        .bss indexB,1 ;sine wave ub table
        .bss indextemp,1 
		.bss ua,1 	; uao=44*sqrt(2)*cos(theta)
		.bss ub,1 	; ubo=44*sqrt(2)*cos(theta-120)
		.bss uc,1 	; uao=44*sqrt(2)*cos(theta-240)
		.bss ualpfa,1 	;alfa-axis voltage
		.bss ubeta,1 	;beta-axis voltage
		.bss um,1     ;the max of the phase voltage
		.bss theta,1 	;rotor electrical position in the range [0;10000]
		.bss sinthetaA,1 		;generated sine wave value
		.bss sinthetaB,1 		;generated cosine wave value
		.bss vdcinvt,1 	;used in svpwm,vdcinvt=T/(2*vdc/87)
		.bss sector,1 	;svpwm sector
		.bss X,1 		;svpwm variable
		.bss Y,1 		;svpwm variable
		.bss Z,1 		;svpwm variable
		.bss t1,1 		;svpwm t1 (see sv pwm references for details)
		.bss t2,1 		;svpwm t2 (see sv pwm references for details)
		.bss taon,1 	;pwm commutation instant phase 1
		.bss tbon,1 	;pwm commutation instant phase 2
		.bss tcon,1 	;pwm commutation instant phase 3
        .bss Vref1,1  ;variable for sector calculation
        .bss Vref2,1  ;variable for sector calculation
        .bss Vref3,1  ;variable for sector calculation
        .bss taontemp,1		
        .bss count,1      
        .bss uaaddress,1
        .bss ubaddress,1  
        .bss t1tmp,1
        
*** end variables and constants initializations

		
		
		.text
START:
	    LDP	#T3PR>>7h	
        SPLK	#0004h,T3PR		;temporary init only
       	SPLK    #1001011001000000b,T3CON	;f=cpu/8
		LDP	#0h
		setc    INTM    
		LACC	IFR
		SACL	IFR		
		clrc    CNF 	
		setc    OVM 
		spm     0 	
		setc    SXM  
		SPLK	#0000h,IMR

		LDP	#WDKEY>>7h
		
		SPLK	#0208h,SCSR1 
		SPLK	#000eh,SCSR2
		
		SPLK	#006Fh,WDCR
		
		KICK_DOG
		 
		 
		MAR	*,AR0
		LDP	#0E1h     
		lar ar4,#79h
        lar ar5,#60h  
        lar ar0,#08000h
		lar ar1,#08800h
		lar ar6,#800h
		lar ar7,#0c00h
		
	 
****************************************************************
* I/O port initialization
****************************************************************
        LDP #DP_PF2
        LACL MCRA 
        OR #0000h 
        SACL MCRA 
        LACL MCRC
        OR #00ffh
        SACL MCRC
        LACL MCRB
        OR #0000h
        SACL MCRB  
        
        ldp #tmp
		zac
		sacl indexA
		sacl indextemp
		sacl tmp
		sacl tmptmp
		sacl Vref1
		sacl Vref2
		sacl Vref3 
		splk #1,count
		splk #0c00h,taontemp
		splk #748h,vdcinvt   ;4.12,if VDCpu=0.8046,vdcinvt=PWMPRD/VDC=1864=748h
		splk #1000h,um         ;peak43.5V
		splk #134,indexB 
		splk #8000h,uaaddress
		splk #9000h,ubaddress
		LDP	#GPTCONB>>7h
		splk    #0666h,ACTRB
		splk    #0ffebh,DBTCONB
		SPLK	#pwmprd,T3PR     
		splk    #300,CMPR4 	;no current sent to the motor
		splk    #300,CMPR5
		splk    #300,CMPR6
		splk    #0307h,COMCONB 
		splk    #8307h,COMCONB 
		SPLK	#0000000000000000b,GPTCONB
		SPLK	#0000000000000000b,T3CNT
		SPLK	#0000h,T3CMPR
		SPLK	#0000001000000001b,EVBIMRA
		SPLK	#0000001000000001b,EVBIFRA
		SPLK	#0000100001000000b,T3CON
		
		LDP	#0
		SPLK	#0000000000000011b,IMR
		CLRC	INTM
		
WAIT:
		NOP
		NOP
		B	WAIT
		
GISR2:
		NOP
		setc INTM
		mar *,ar4 		;ar4 active auxiliary reg (stack pointer)
					;ar4 initial value #79h
		mar *-
		sst #1,*- 		;save status register 1
		sst #0,*- 		;save status register 0
		sach *- 		;save ms word of accu
		sacl *- 		;save ls word of accu
*************************************
* end context saving                *
*************************************
            ldp #tmp
            lacc count
            sub #1
            sacl count
            bgz  uacal
            lacc #1
            sacl count  
               
	 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;    Following program is to test SVPWM agrithm.        ;
    ;;    The desired input three-phase sine-voltages        ;
    ;;    is get by lookup table.                            ;
    ;;      Ua=Umax*sin(teta)                                ;
    ;;      Ub=Umax*sin(teta-120)                            ;
    ;;      Uc=Umax*sin(teta+120)                            ;
    ;;      theta=omiga*t                                    ;
            ldp   #tmp
            mar   *,ar3        ;making ar3 as current AR
            lacl  indexA        ;; judging if indexA is in    
            and   #0ffh        ;; 0-200, if larger than 
            sub   #200         ;; 200,then index=index-201
            bcnd  sin_cirA,LT
            sacl  indexA
sin_cirA:    
          ; calculating ua
            lacl  indexA
            add   #sintab   ;look up sine table
            sacl  tmp
            lar   ar3,tmp
            lacl  *                                  
            sacl  sinthetaA  ;get value of sintetaA               
            lt    sinthetaA  ; Q15
            mpy   um     ;ua=um*sin(teta),um(Q12)=1000h
            pac          ; ua(Q12), for Q15*Q12=Q27, get off 
            sach  ua,1   ; low 16 bits,then Q11,so left-shift 
                         ; 1 bit, Q12
          ; calculating ub  
            lacl  indexB
            and   #0ffh
            sub   #200
            bcnd  sin_cirB,LT
            sacl  indexB
sin_cirB:
            lacl  indexB
            add   #sintab   ; in sine table lag 67 word
            sacl  tmp
            lar   ar3,tmp
            lacl  *         ;look up sine table                         
            sacl  sinthetaB  ;get value of sintetaA               
            lt    sinthetaB  ; Q15
            mpy   um     ;ub=Umax*sintetaB,Umax(Q12)=1000h
            pac          ; ub(Q12), for Q15*Q12=Q27, get off 
            sach  ub,1   ; low 16 bits,then Q11,so left-shift 
                         ; 1 bit, Q12
            
         
            
                                        
                                         
;            lacl indextemp
;            sub  #1
;            bcnd continue,LT
;            zac
;            sacl indextemp
            lacl  indexA
            and   #0ffh  
            add   #1        ;  inext=index+1,indicate next 
            sacl  indexA     ;  element of sine table                                           
            lacl  indexB
            and   #0ffh  
            add   #1         ;  inext=index+1,indicate next 
            sacl  indexB     ;  element of sine table                                           
;continue:
;            lacl indextemp
;            and #0ffh
;            add #1
;            sacl indextemp

        lacc sinthetaA 	;format 4.12,adjust ia to suit output
        sfr
		sfr
		sfr 		;12 bit dac, [0 1000h] = [0,5] volt
		sfr 
		sacl tmptmp
		add #800h 	;800h is 2.5 volt.
		sacl tmpA 	; data sent to dac0 buffer
		out tmpA,0   
	    out tmpA,4   

                                                ;
;;    End  ua, ub, uc calculation                            ;   
;;    We get the desired 3-phase voltages.                   ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;                                
           
                                 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;                                
;;           Clarke transformation                           ;
;;           (a,b)==>(alfa,beta)                             ;
;;           ualpfa=ua                                       ;
;;           ubeta=(2*ub+ua)/sqrt(3)                        ;            
                                
uacal:
        lacc  ua
        sacl  ualpfa    ;usalfa 4.12
        lacc  ub,1    ;ubeta=(2*ub+ua)/sqrt(3)               
        add   ua
        sacl  tmp
        lt    tmp
        mpy   #sqrt3inv ;093dh, 4.12, 1/sqrt(3)=0.57735                     
        pac                    
        sach  ubeta,4  ;usbeta(Q12), for Q12*Q12=Q24, 
                        ;get off low 16 bits,then Q8,                   
                        ;so left-shift 4 bit, Q12    
                        
        lacc ualpfa 	;format 4.12,adjust ia to suit output
        sfr
		sfr
		sfr 		;12 bit dac, [0 1000h] = [0,5] volt
		sfr 
		sacl tmptmp
		add #800h 	;800h is 2.5 volt.
		sacl tmpA 	; data sent to dac0 buffer
		out tmpA,1   
	    out tmpA,5
	        
	    lacc ubeta 	;format 4.12,adjust ia to suit output
	    sfr
		sfr
		sfr 		;12 bit dac, [0 1000h] = [0,5] volt
		sfr 
		sacl tmptmp
		add #800h 	;800h is 2.5 volt.
		sacl tmpA 	; data sent to dac0 buffer
		out tmpA,2   
	    out tmpA,6    
	     
	     
	     
	     
WP:		   
           clrc  c
		   lacc  uaaddress
		   sub #8fffh
		   bgez SVPWM 
		   lar ar1,t1tmp
	       lar ar2,uaaddress  
	       mar *,ar2
	       sar ar1,*+
	       sar ar2,uaaddress 
	       lar ar1,ubeta   
	       lar ar2,ubaddress  
	       mar *,ar2
	       sar ar1,*+
	       sar ar2,ubaddress 
	         
	                                                    
;      End  Clarke transformation                           ;                                
                                           
              
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;                                

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色婷婷av一区二区三区软件| 精品在线播放免费| av男人天堂一区| 国产亚洲精品资源在线26u| 久久精品国产网站| 久久综合国产精品| 国产一区在线不卡| 中文天堂在线一区| 日本高清不卡一区| 午夜精品久久久| 日韩欧美一区二区视频| 91美女视频网站| 亚洲国产人成综合网站| 91精品国产综合久久蜜臀| 久久99精品视频| 国产婷婷色一区二区三区| 99久久99久久免费精品蜜臀| 亚洲另类春色国产| 欧美一区二区三区在线电影| 国产毛片精品视频| 日韩美女啊v在线免费观看| 欧美日韩一二区| 韩国成人精品a∨在线观看| 国产精品免费av| 欧美日韩一区二区三区视频| 狠狠色狠狠色综合系列| 国产精品国产三级国产aⅴ中文| 色婷婷激情久久| 久久 天天综合| 亚洲欧洲中文日韩久久av乱码| 欧美视频一区二区三区在线观看| 久久99精品久久久久久久久久久久| 中文字幕不卡在线观看| 欧美色涩在线第一页| 精东粉嫩av免费一区二区三区| 日韩美女久久久| 日韩欧美久久一区| 91女神在线视频| 精彩视频一区二区| 亚洲国产一区在线观看| 久久夜色精品国产欧美乱极品| 99国产麻豆精品| 精品亚洲免费视频| 夜夜嗨av一区二区三区网页| 久久婷婷色综合| 欧美三级乱人伦电影| 国产成人精品亚洲777人妖| 香港成人在线视频| 国产精品卡一卡二卡三| 日韩色视频在线观看| 色丁香久综合在线久综合在线观看| 久久精品国内一区二区三区| 亚洲一区在线观看免费| 中文字幕不卡一区| 精品国产91久久久久久久妲己| 欧美亚洲综合在线| 99久久国产综合精品色伊| 久草精品在线观看| 婷婷中文字幕综合| 一区二区三区免费在线观看| 国产精品久久网站| 久久精品亚洲乱码伦伦中文| 日韩一区二区免费在线电影| 欧美日韩亚洲综合一区二区三区| 懂色av一区二区三区免费看| 秋霞国产午夜精品免费视频| 午夜精品一区二区三区电影天堂 | 亚洲国产精品久久久久婷婷884 | 国产精品视频yy9299一区| 日韩视频在线你懂得| 欧美日韩欧美一区二区| 欧美性猛片aaaaaaa做受| 99热99精品| a4yy欧美一区二区三区| 国产高清亚洲一区| 国产一区二区三区在线观看免费视频| 日韩制服丝袜av| 午夜欧美电影在线观看| 婷婷开心久久网| 亚洲va天堂va国产va久| 亚洲午夜国产一区99re久久| 樱花影视一区二区| 亚洲一区二区三区中文字幕在线| 亚洲精品中文在线观看| 亚洲精品国产高清久久伦理二区 | 亚洲视频一二三区| 国产精品福利影院| 国产精品激情偷乱一区二区∴| 久久久99精品免费观看不卡| 国产午夜亚洲精品羞羞网站| 亚洲国产精品传媒在线观看| 欧美激情一区二区三区不卡 | 成人美女视频在线看| 国产欧美精品在线观看| 精品成人一区二区三区四区| www国产成人| 久久久99精品久久| 中文字幕一区二区三区乱码在线| 中文字幕中文字幕一区二区| 中文字幕亚洲视频| 亚洲一卡二卡三卡四卡 | 精品国产一区二区三区久久久蜜月| 日韩亚洲欧美在线| 久久久蜜臀国产一区二区| 欧美韩国日本不卡| 亚洲欧美日韩国产综合| 午夜精品免费在线观看| 麻豆精品一区二区| 成人h精品动漫一区二区三区| 色综合久久天天综合网| 欧美一区日韩一区| 亚洲国产精品99久久久久久久久| 亚洲私人黄色宅男| 午夜欧美一区二区三区在线播放| 经典三级视频一区| 91一区在线观看| 91精品国产一区二区三区蜜臀| 精品久久久久久无| 亚洲人成小说网站色在线 | 伊人一区二区三区| 免费观看91视频大全| 成人免费视频播放| 91精品国产全国免费观看| 国产亚洲视频系列| 亚洲福利视频三区| 国产91精品在线观看| 欧美系列在线观看| 久久久久久久免费视频了| 亚洲综合色噜噜狠狠| 国产一区二区三区黄视频 | 成人av影视在线观看| 欧美色电影在线| 国产日韩av一区二区| 亚洲国产wwwccc36天堂| 国产成人免费网站| 欧美一区永久视频免费观看| 亚洲手机成人高清视频| 韩国女主播成人在线| 欧美日韩另类一区| 国产精品久久久久一区| 狠狠色狠狠色综合系列| 欧美人牲a欧美精品| 亚洲欧美日韩小说| 国产91清纯白嫩初高中在线观看 | 日韩精品免费专区| 色八戒一区二区三区| 中文字幕av一区二区三区免费看 | 一级中文字幕一区二区| 成人综合激情网| 日韩精品一区二区三区在线 | 亚洲一区在线观看网站| 成人性生交大合| www精品美女久久久tv| 日本亚洲三级在线| 欧美高清视频一二三区| 亚洲美女在线国产| 成人黄色电影在线| 欧美国产精品中文字幕| 国产老女人精品毛片久久| 欧美videos大乳护士334| 日韩成人av影视| 欧美午夜一区二区三区| 亚洲美女免费在线| www.亚洲免费av| 欧美国产一区二区| 国产成人精品亚洲日本在线桃色| 久久免费电影网| 国产精品中文字幕日韩精品 | 中文字幕亚洲成人| 成人综合在线网站| 国产农村妇女毛片精品久久麻豆 | 欧美日免费三级在线| 一区二区三区欧美日韩| 色呦呦网站一区| 亚洲一二三区不卡| 欧美精品 国产精品| 亚洲国产va精品久久久不卡综合| 色婷婷综合久色| 亚洲综合丁香婷婷六月香| 欧美性猛交xxxx黑人交| 午夜久久电影网| 欧美丰满美乳xxx高潮www| 日韩av高清在线观看| 91精品国产91综合久久蜜臀| 奇米四色…亚洲| 精品国产伦理网| 国产精品资源在线看| 国产精品久久久久aaaa樱花 | av激情亚洲男人天堂| 亚洲精品高清在线观看| 欧美人妇做爰xxxⅹ性高电影| 视频一区国产视频| 欧美精品一区二区高清在线观看| 国产一区二区美女诱惑| 亚洲欧美在线高清| 欧美日韩aaaaaa| 国产一区二区三区观看| 亚洲图片激情小说| 91精品国模一区二区三区| 国产精品综合一区二区|