资源描述:
《dsp低通滤波器设计》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、YKZTQ.ASMLED8EQU7FH;显示单元LED7EQU7EHLED6EQU7DHLED5EQU7CHLED4EQU7BHLED3EQU7AHLED2EQU79HLED1EQU78HFDY8EQU3FH;测频率单元FDY7EQU3EHFDY6EQU3DHFDY5EQU3CHFDY4EQU3BHFDY3EQU3AHFDY2EQU39HFDY1EQU38HFUNKEYEQUP1.0;测频率SELKEYEQUP1.1;预置,上调FIXKEYEQUP1.2;修改,下调LOADEQUP2.7DDQUP2.6SEL2EQUP2.5SEL1EQUP2.4RUN
2、BZEQUP2.2ADBEQUP2.1ADAEQUP2.0INT_R1EQU46HINT_R0EQU47HINT_R2EQU48HKEYNUMEQU49H ORG00HLJMPMAINORG30HMAIN:CLEAR:MOVR0,#00HMOVR1,#128MOVA,#00HL1:MOV@R0,AINCR0DJNZR1,L1MOVSP,#60HMOVP2,#00HSETBRUNBZCLRRUNBZLCALLNL0MOVLED3,#02H;初值为25MHzMOVLED2,#05HMOVLED1,#00HMOV5FH,#01H;100kHz,0.1MHzM
3、OV5EH,#00HMOV37H,#0FAHMOVLED8,#0AHLCALLDISPML0:LCALLKKEYIMLL2:CJNEA,#00H,ML1SETB28H.0CLR28H.1ML00:LCALLTESTFLCALLKKEYIIJNB28H.3,ML1LJMPML00ML1:CJNEA,#01H,ML11CLR28H.0SETB28H.1LCALLJIACLSETBSEL1SETBRUNBZCLRRUNBZCLRSEL1LJMPML0ML11:CJNEA,#02H,ML2CLR28H.0SETB28H.1LCALLJIANCLSETBSEL2
4、SETBRUNBZCLRRUNBZCLRSEL2ML2:LJMPML0JIACL:MOV4EH,36HMOV4FH,37HLCALLADDMBMOV36H,4EHMOV37H,4FHMOV22H,4DHMOV21H,4EHMOV20H,4FHLCALLHEXBCD2MOVLED8,#0BHMOVLED7,#12HMOVLED6,#12HMOVLED5,#12HMOVLED4,#12HLCALLDISPRETJIANCL:MOVR2,36HMOVA,37HMOVR0,#5FHLCALLSUBB2MOV36H,R2MOV37H,AMOV22H,35HMOV
5、21H,36HMOV20H,37HLCALLHEXBCD2MOVLED8,#0BHMOVLED7,#12HMOVLED6,#12HMOVLED5,#12HMOVLED4,#12HLCALLDISPRET SUBB2:CPLAADDA,@R0CPLAINCR0XCHA,R2CPLAADDCA,@R0CPLAXCHA,R2DECR0RET TESTF:ANLP2,#0FCHMOVR0,#3FH;读入数据MOVR3,#03H;读3次P0口TFL0:MOVA,P0MOV@R0,ADECR0MOVA,P2INCA;指向CPLD下一个数据ADRCADRBADRA=
6、MOVP2,ADJNZR3,TFL0ANLP2,#0FCHMOV58H,3EH;另存MOV59H,3FHMOV22H,3DHMOV21H,3EHMOV20H,3FHLCALLHEXBCD2MOVA,LED7CJNEA,#00H,FL4MOVLED7,#12HMOVA,LED6CJNEA,#00H,FL4MOVLED6,#12HFL4:MOVLED8,#0BHLCALLDISPRET ;显示程序DISP:MOVR0,#LED8;预置显示单元MOVR1,#08HJNB28H.0,DL0DLL0:MOVA,R1CJNEA,#05H,DL3LJMPDL4DL0
7、:MOVA,R1CJNEA,#02H,DL3LJMPDL4DL3:MOVA,@R0MOVDPTR,#TAB1MOVCA,@A+DPTRMOVSBUF,ALJMPDL1DL4:MOVA,@R0MOVDPTR,#TAB1MOVCA,@A+DPTRORLA,#01HMOVSBUF,ADL1:JNBTI,DL1CLRTIDECR0DJNZR1,DL8LJMPNEXT4DL8:JB28H.0,DLL0;JB28H.1,DL0LJMPDL0NEXT4:RET;a,b,c,d,e,f,g,hTAB1:DB0FCH,60H,0DAH;012DB0F2H,66H,0B6
8、H;345DB0BEH,0E0H,0FEH;678DB0F6H,0EEH,3EH;9ABDB9