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

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

?? dac.asm

?? tm320lf2407測試程序
?? ASM
?? 第 1 頁 / 共 3 頁
字號:
		TBLR	NEXTVALUE		;Read the next value from the table and store into NEXTVALUE

		LACC	NEXTVALUE		;Load the ACC with NEXTVALUE
		SUB	VALUE			;Subtract the previous value
		SACL	DIFFERENCE		;Store the difference between the values into DIFFERENCE
		
		LT	DIFFERENCE		;Load the TREG with DIFFERENCE
		MPY	REMAINDER		;Multiply the DIFFERENCE with REMAINDER
		PAC				;Move the product to the ACC
		SACH	REMAINDER,1		;Store the upper byte to REMAINER and shift left by 1, Q15

		LACC	REMAINDER		;Load ACC with new REMAINDER
		ADD	VALUE			;Add VALUE to get the new interpolated value
		SACL	VALUE			;Store the interpolated value into VALUE

		LT	VALUE			;Load the TREG with the new interpolated VALUE
		MPY	MAG1			;Multiply VALUE by a magnitude 
		PAC				;Move the product to ACC
		SACH	DAC1VAL,1		;Store the new value to DAC0VAL to output, shift to get Q15


;The following section performs the necessary calculations for the third sine wave

		LACC	MODREG2		;ACC loaded with the counting register
		ADD	FREQSTEP2		;Counting Register increased by specific step
		SACL	MODREG2		;Store the updated the counter value
		LACC	MODREG2,8		;Reload the new counter value but shift left by 8 bits
		SACH	TABLE			;Store the high bit into the TABLE as pointer to lookup table
		SFR				;Shift the value to the right convert to Q15
		AND	#07FFFh		;Make sure the Q15 value is positive
		SACL 	REMAINDER		;Store the fractional value of the counting register

		LACC	TABLE			;Load the accumulator with the proper index value
		ADD	TOPTABLE		;Displace the ACC with the starting address
		TBLR	VALUE			;Read the value from the table and store into VALUE
		ADD	#1			;Increment the ACC to the next address
		TBLR	NEXTVALUE		;Read the next value from the table and store into NEXTVALUE

		LACC	NEXTVALUE		;Load the ACC with NEXTVALUE
		SUB	VALUE			;Subtract the previous value
		SACL	DIFFERENCE		;Store the difference between the values into DIFFERENCE	
		
		LT	DIFFERENCE		;Load the TREG with DIFFERENCE
		MPY	REMAINDER		;Multiply the DIFFERENCE with REMAINDER
		PAC				;Move the product to the ACC
		SACH	REMAINDER,1		;Store the upper byte to REMAINER and shift left by 1, Q15

		LACC	REMAINDER		;Load ACC with new REMAINDER
		ADD	VALUE			;Add VALUE to get the new interpolated value
		SACL	VALUE			;Store the interpolated value into VALUE

		LT	VALUE			;Load the TREG with the new interpolated VALUE
		MPY	MAG2			;Multiply VALUE by a magnitude 
		PAC				;Move the product to ACC
		SACH	DAC2VAL,1		;Store the new value to DAC0VAL to output, shift to get Q15

;The following section performs the necessary calculations for the fourth sine wave

		LACC	MODREG3		;ACC loaded with the counting register
		ADD	FREQSTEP3		;Counting Register increased by specific step
		SACL	MODREG3		;Store the updated the counter value
		LACC	MODREG3,8		;Reload the new counter value but shift left by 8 bits
		SACH	TABLE			;Store the high bit into the TABLE as pointer to lookup table
		SFR				;Shift the value to the right convert to Q15
		AND	#07FFFh		;Make sure the Q15 value is positive
		SACL 	REMAINDER		;Store the fractional value of the counting register

		LACC	TABLE			;Load the accumulator with the proper index value
		ADD	TOPTABLE		;Displace the ACC with the starting address
		TBLR	VALUE			;Read the value from the table and store into VALUE
		ADD	#1			;Increment the ACC to the next address
		TBLR	NEXTVALUE		;Read the next value from the table and store into NEXTVALUE

		LACC	NEXTVALUE		;Load the ACC with NEXTVALUE
		SUB	VALUE			;Subtract the previous value
		SACL	DIFFERENCE		;Store the difference between the values into DIFFERENCE	
		
		LT	DIFFERENCE		;Load the TREG with DIFFERENCE
		MPY	REMAINDER		;Multiply the DIFFERENCE with REMAINDER
		PAC				;Move the product to the ACC
		SACH	REMAINDER,1		;Store the upper byte to REMAINER and shift left by 1, Q15

		LACC	REMAINDER		;Load ACC with new REMAINDER
		ADD	VALUE			;Add VALUE to get the new interpolated value
		SACL	VALUE			;Store the interpolated value into VALUE

		LT	VALUE			;Load the TREG with the new interpolated VALUE
		MPY	MAG3			;Multiply VALUE by a magnitude 
		PAC				;Move the product to ACC
		SACH	DAC3VAL,1		;Store the new value to DAC0VAL to output, shift to get Q15

;Sets the values to 12 bits

		LDP	#0			;This section outputs the SINE wave to the DAC
		LACC	DAC0VAL		;ACC = DAC0VAL - entry from the lookup table
		ADD	#8000h		;Displace the value half the maximum
		SFR				;Shift over 4 places since the DAC is 12bits
		SFR
		SFR
		SFR		
		SACL	DAC0VAL		;Store the new 12 bit value into DAC0VAL

		LACC	DAC1VAL		;ACC = DAC0VAL - entry from the lookup table
		ADD	#8000h		;Displace the value half the maximum
		SFR				;Shift over 4 places since the DAC is 12bits
		SFR
		SFR
		SFR		
		SACL	DAC1VAL		;Store the new 12 bit value into DAC1VAL

		LACC	DAC2VAL		;ACC = DAC0VAL - entry from the lookup table
		ADD	#8000h		;Displace the value half the maximum
		SFR				;Shift over 4 places since the DAC is 12bits
		SFR
		SFR
		SFR		
		SACL	DAC2VAL		;Store the new 12 bit value into DAC2VAL

		LACC	DAC3VAL		;ACC = DAC0VAL - entry from the lookup table
		ADD	#8000h		;Displace the value half the maximum
		SFR				;Shift over 4 places since the DAC is 12bits
		SFR
		SFR
		SFR		
		SACL	DAC3VAL		;Store the new 12 bit value into DAC3VAL

		OUT 	DAC0VAL,DAC0	;Stores the 12 bit value into DAC0 register
		OUT	DAC1VAL,DAC1	;Stores the 12 bit value into DAC1 register
		OUT 	DAC2VAL,DAC2	;Stores the 12 bit value into DAC2 register
		OUT	DAC3VAL,DAC3	;Stores the 12 bit value into DAC3 register
		OUT 	DAC0VAL,DAC_UPDATE ;Causes the DAC to output the value

		B	SINE

;-------------------------------------------------------
; Sine look-up table
; No. Entries	: 256
; Angle Range	: 360 deg
; Number format : Q15 with range -1 < N < +1
;-------------------------------------------------------
		      ;SINVAL	     ;	      Index	Angle	Sin(Angle)
STABLE	.word	  	0	     	 ;		0	  	0	0.0000
            .word        804         ;          1        1.41     0.0245
            .word       1608         ;          2        2.81     0.0491
            .word       2410         ;          3        4.22     0.0736
            .word       3212         ;          4        5.63     0.0980
            .word       4011         ;          5        7.03     0.1224
            .word       4808         ;          6        8.44     0.1467
            .word       5602         ;          7        9.84     0.1710
            .word       6393         ;          8       11.25     0.1951
            .word       7179         ;          9       12.66     0.2191
            .word       7962         ;         10       14.06     0.2430
            .word       8739         ;         11       15.47     0.2667
            .word       9512         ;         12       16.88     0.2903
            .word       10278        ;         13       18.28     0.3137
            .word       11039        ;         14       19.69     0.3369
            .word       11793        ;         15       21.09     0.3599
            .word       12539        ;         16       22.50     0.3827
            .word       13279        ;         17       23.91     0.4052
            .word       14010        ;         18       25.31     0.4276
            .word       14732        ;         19       26.72     0.4496
            .word       15446        ;         20       28.13     0.4714
            .word       16151        ;         21       29.53     0.4929
            .word       16846        ;         22       30.94     0.5141
            .word       17530        ;         23       32.34     0.5350
            .word       18204        ;         24       33.75     0.5556
            .word       18868        ;         25       35.16     0.5758
            .word       19519        ;         26       36.56     0.5957
            .word       20159        ;         27       37.97     0.6152
            .word       20787        ;         28       39.38     0.6344
            .word       21403        ;         29       40.78     0.6532
            .word       22005        ;         30       42.19     0.6716
            .word       22594        ;         31       43.59     0.6895
            .word       23170        ;         32       45.00     0.7071
            .word       23731        ;         33       46.41     0.7242
            .word       24279        ;         34       47.81     0.7410
            .word       24811        ;         35       49.22     0.7572
            .word       25329        ;         36       50.63     0.7730
            .word       25832        ;         37       52.03     0.7883
            .word       26319        ;         38       53.44     0.8032
            .word       26790        ;         39       54.84     0.8176
            .word       27245        ;         40       56.25     0.8315
            .word       27683        ;         41       57.66     0.8449
            .word       28105        ;         42       59.06     0.8577
            .word       28510        ;         43       60.47     0.8701
            .word       28898        ;         44       61.88     0.8819
            .word       29268        ;         45       63.28     0.8932
            .word       29621        ;         46       64.69     0.9040
            .word       29956        ;         47       66.09     0.9142
            .word       30273        ;         48       67.50     0.9239
            .word       30571        ;         49       68.91     0.9330
            .word       30852        ;         50       70.31     0.9415
            .word       31113        ;         51       71.72     0.9495
            .word       31356        ;         52       73.13     0.9569
            .word       31580        ;         53       74.53     0.9638
            .word       31785        ;         54       75.94     0.9700
            .word       31971        ;         55       77.34     0.9757
            .word       32137        ;         56       78.75     0.9808
            .word       32285        ;         57       80.16     0.9853
            .word       32412        ;         58       81.56     0.9892
            .word       32521        ;         59       82.97     0.9925
            .word       32609        ;         60       84.38     0.9952
            .word       32678        ;         61       85.78     0.9973
            .word       32728        ;         62       87.19     0.9988
            .word       32757        ;         63       88.59     0.9997
            .word       32767        ;         64       90.00     1.0000

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合天天天天做夜夜夜夜做| 亚洲成人午夜影院| 国产精品538一区二区在线| 日韩欧美电影一区| 精品系列免费在线观看| 久久九九久久九九| 99久久精品国产精品久久| 亚洲婷婷综合久久一本伊一区| 一道本成人在线| 午夜精品免费在线观看| 日韩欧美电影一二三| 国产成人精品免费视频网站| 亚洲图片激情小说| 7777精品伊人久久久大香线蕉超级流畅| 午夜精彩视频在线观看不卡| 精品国产乱码久久久久久图片| 国产一区二区三区四| 亚洲日本va在线观看| 欧美日韩的一区二区| 国产剧情一区二区三区| 亚洲黄色免费网站| 精品国产麻豆免费人成网站| 国产91精品一区二区麻豆亚洲| 亚洲精品亚洲人成人网在线播放| 欧美日韩精品一区视频| 国产精品夜夜嗨| 亚洲精品久久嫩草网站秘色| 日韩美女视频在线| 91免费在线看| 激情六月婷婷久久| 夜夜嗨av一区二区三区中文字幕 | 欧美极品aⅴ影院| 色一情一伦一子一伦一区| 美国十次了思思久久精品导航| 国产精品久久久久久久久晋中 | 国产一区二区三区在线观看免费视频| 亚洲人123区| 精品国产乱码久久久久久久久| 91麻豆国产在线观看| 国产一区二区在线免费观看| 亚洲第一综合色| 国产精品国产三级国产普通话99| 91.xcao| 91在线小视频| 国内不卡的二区三区中文字幕| 亚洲电影一区二区三区| 中文字幕不卡的av| 精品欧美一区二区在线观看| 色哟哟一区二区在线观看| 国产成人免费视频精品含羞草妖精 | 91色porny在线视频| 国产美女在线精品| 免费一级片91| 亚洲不卡av一区二区三区| 国产精品女人毛片| 国产午夜精品美女毛片视频| 日韩欧美视频在线| 欧美一区二区三区色| 欧美视频在线观看一区| 色噜噜狠狠成人网p站| 成人精品视频.| 国产福利一区在线| 久久99精品国产.久久久久 | 亚洲靠逼com| 亚洲四区在线观看| 国产精品久久久久久久久免费相片 | 亚洲线精品一区二区三区| 国产精品久久福利| 国产免费久久精品| 中文字幕av资源一区| 国产清纯白嫩初高生在线观看91 | 国产综合色视频| 蜜臀精品一区二区三区在线观看| 亚洲成人av在线电影| 一区二区三区四区蜜桃| 亚洲欧美一区二区三区极速播放 | 欧美日韩综合在线| 欧美午夜不卡视频| 欧美日韩国产美| 欧美二区三区的天堂| 欧美伦理影视网| 欧美一区二区视频观看视频| 91麻豆精品国产无毒不卡在线观看| 欧美日韩国产一级片| 日韩一区二区不卡| 精品久久久久久久久久久久久久久 | 日本午夜一区二区| 久久国内精品视频| 国产精品一区二区三区99| 国产99久久久精品| 91在线看国产| 欧美精品丝袜久久久中文字幕| 欧美精品1区2区| 精品sm在线观看| 国产精品久久久久婷婷| 一区二区三区在线视频观看58| 亚洲精品日日夜夜| 无吗不卡中文字幕| 国产伦理精品不卡| 99久久免费精品高清特色大片| 欧美性xxxxxx少妇| 精品国产伦一区二区三区观看方式| 久久亚洲二区三区| 日韩毛片视频在线看| 日韩精品亚洲专区| 粉嫩绯色av一区二区在线观看| 91无套直看片红桃| 91麻豆精品国产91久久久更新时间 | 日韩视频国产视频| 国产欧美一区视频| 亚洲在线视频网站| 极品尤物av久久免费看| 成熟亚洲日本毛茸茸凸凹| 欧美午夜一区二区三区| 久久综合色8888| 亚洲高清视频中文字幕| 精品中文字幕一区二区| 91在线精品一区二区| 精品免费国产二区三区| 亚洲视频综合在线| 久久99精品网久久| 欧美亚洲国产bt| 日本一区二区三区四区在线视频| 亚洲高清久久久| 成人亚洲一区二区一| 91精品国模一区二区三区| 中文字幕在线观看不卡视频| 青青青爽久久午夜综合久久午夜| 国产 欧美在线| 欧美成人一区二区三区在线观看| 国产精品色眯眯| 精品在线播放免费| 欧美色图免费看| 中文字幕av一区二区三区高| 精油按摩中文字幕久久| 欧美日本国产视频| 亚洲精品一二三| 成av人片一区二区| 精品久久国产97色综合| 亚洲一区av在线| 97久久久精品综合88久久| 欧美精品一区二区三区蜜桃 | 在线观看精品一区| 欧美激情在线观看视频免费| 久久国产精品99久久人人澡| 色88888久久久久久影院野外| 中日韩免费视频中文字幕| 国产在线视视频有精品| 欧美精品一卡两卡| 亚洲成人综合网站| 欧美色爱综合网| 亚洲美女屁股眼交3| 不卡一区中文字幕| 中文字幕精品在线不卡| 国产精品伊人色| 国产婷婷精品av在线| 国产制服丝袜一区| 日韩欧美卡一卡二| 看电视剧不卡顿的网站| 日韩欧美黄色影院| 久久国产夜色精品鲁鲁99| 26uuu国产电影一区二区| 日本视频一区二区三区| 欧美剧情电影在线观看完整版免费励志电影| 亚洲特级片在线| 91视频你懂的| 亚洲美女少妇撒尿| 在线观看不卡视频| 亚洲国产一二三| 欧美高清hd18日本| 蜜桃久久精品一区二区| 欧美一区二区三区在| 另类小说图片综合网| 欧美成人午夜电影| 国内国产精品久久| 国产精品久久久久天堂| 日本道色综合久久| 视频在线观看一区| 精品入口麻豆88视频| 福利一区二区在线| 日韩一区在线看| 欧美色视频在线| 蜜臀av在线播放一区二区三区| 欧美成人免费网站| 不卡一二三区首页| 亚洲一区视频在线观看视频| 欧美日韩国产小视频| 日韩黄色免费网站| 久久亚洲一区二区三区明星换脸| 不卡视频一二三| 亚洲成人777| www久久久久| 91视频com| 免费成人av在线| 国产精品久久久久久一区二区三区| 色综合久久久久| 精品一区二区三区免费视频| 国产欧美日产一区| 欧美剧情电影在线观看完整版免费励志电影 | 亚洲欧美日韩国产另类专区|