main.a51
来自「that is an example for pluse width modul」· A51 代码 · 共 15 行
A51
15 行
;******************************************************
; 2002-08-10 by Johnson Chang, 8051.24cc.com john3055@yam.com
; Description:
; PWM controller by 2 push bottom switches
; SW3 is the increament switch. Pulse width increased when SW3 pressed
; SW1 is the decreament switch. Pulse width decreased when SW1 pressed
; T=5mS
; Pulse Width = 0.1mS - 4.99mS
;******************************************************
; 跑计﹚竡跋
PW equ 4 ;=R4
T equ 5 ;=R5
;
SW1 equ P1.4 ;オ 龄
SW2 equ P1.5 ;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?