ORG 0H
SJMP START
ORG 100H
START:
MOV PWMPH,#0
MOV PWMPL,#0FFH
MOV PWM0H,#0
MOV PWM0L,#080H
MOV PWM1H,#0
MOV PWM1L,#0A0H
MOV PWM2H,#0
MOV PWM2L,#0C0H
MOV PWM3H,#0
MOV PWM3L,#0F0H
ORL PWMCON0,#0D0H
MOV PWMCON1,#30H
END
资料提供的汇编程序,看不懂,求注解。
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
- PWMPH = 0;
- PWMPL = 0xFF;
- PWM0H = 0;
- PWM0L = 0x80;
- PWM1H = 0;
- PWM1L = 0xA0;
- PWM2H = 0;
- PWM2L = 0xC0;
- PWM3H = 0;
- PWM3L = 0xF0;
- PWMCON0 = PWMCON0 | 0xD0;
- PWMCON1 = 0x30;
- 这是汇编代码的意思。具体PWMP,PWM0~PWM3,PWMCON0,PWMCOM1是什么意思你自己看单片机资料吧。
复制代码一周热门 更多>