您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > 51单片机汇编语言实现波形发生器
ORG0000HLJMPSTARTORG0050HSTART:JNBP1.0,J100JNBP1.1,J101JNBP1.2,J102JNBP1.3,J103LJMPSTARTJ100:MOVR7,#00HJNBP1.1,J101JNBP1.2,J102JNBP1.3,J103LJMPSQUAREJ101:MOVR7,#01HJNBP1.0,J100JNBP1.2,J102JNBP1.3,J103LJMPTRIANGLEJ102:MOVR7,#02HJNBP1.0,J100JNBP1.1,J101JNBP1.3,J103LJMPSAWJ103:MOVR7,#03HJNBP1.0,J100JNBP1.1,J101JNBP1.2,J102LJMPSINSQUARE:CJNER7,#00H,FANHUIMOVR0,#00HK00:MOVP0,#0FFHMOVP2,#0FFHMOVA,P2CPLAMOVR3,AL00:DECR3CJNER3,#255,L00INCR0INCR0CJNER0,#254,K00MOVR0,#00HK01:MOVP0,#00HMOVP2,#0FFHMOVA,P2CPLAMOVR3,AL01:DECR3CJNER3,#255,L01INCR0INCR0CJNER0,#254,K01LJMPJ100FANHUI:RETTRIANGLE:CJNER7,#01H,FANHUI2MOVR0,#00HK20:MOVP0,R0MOVP2,#0FFHMOVA,P2CPLAMOVR3,AL20:DECR3CJNER3,#255,L20INCR0INCR0CJNER0,#254,K20K21:MOVP0,R0MOVP2,#0FFHMOVA,P2CPLAMOVR3,AL21:DECR3CJNER3,#255,L21DECR0DECR0CJNER0,#0,K21LJMPJ101FANHUI2:RETSAW:CJNER7,#02H,FANHUI3MOVR0,#0FFHK10:MOVP0,R0MOVP2,#0FFHMOVA,P2CPLAMOVR3,AL10:DECR3CJNER3,#255,L10INCR0CJNER0,#255,K10LJMPJ102FANHUI3:RETSIN:CJNER7,#03H,FANHUI4MOVR0,#00HK30:MOVA,R0MOVDPTR,#TABMOVCA,@A+DPTR;MOVDPTR,#7FFFH;MOVX@DPTR,AMOVP0,AINCR0MOVP2,#0FFHMOVA,P2CPLAMOVR3,AL30:DECR3CJNER3,#255,L30CJNER0,#255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,61H,63H,65H,67H,69H,6BH,6DH,6FH,71H,73H,75H,77H,79H,7BH,7DHEND
本文标题:51单片机汇编语言实现波形发生器
链接地址:https://www.777doc.com/doc-5590970 .html