⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adc.asm

📁 有速度pid的异步电机vf控制的dsp调试程序
💻 ASM
字号:
;===========================================================================
;(To use this Module, copy this section to main system file)
;		.ref	ADC, ADC_INIT	; function call
;		.ref	ad_max			; Inputs
;		.ref	c0_out, c1_out,c2_out,c3_out		; Outputs
;===========================================================================
;Module definitions for external reference.
		.def	ADC, ADC_INIT	; function call
;		.def	ad_max 			; Inputs
		.def	c0_out,c1_out, c2_out,c3_out
		; Outputs
;===========================================================================
                          .include	"x24x_app.h"
;===========================================================================
;ad_max 	.usect "adc",1
c0_out      .usect "ADC",1
c1_out      .usect "ADC",1
c2_out      .usect "ADC",1
c3_out      .usect "ADC",1



ADC_INIT:
        POINT_PF2
		SPLK 	#0100000000000000b,ADCL_CNTL1 ; Reset ADC module
		NOP
		SPLK 	#0011000000010000b,ADCL_CNTL1 ; Take ADC out of reset
			;||||||||||||||||
			;5432109876543210
				; 15 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -