acelikbilek
Üye
- Katılım
- 18 Mar 2010
- Mesajlar
- 3
- Puanları
- 1
- Yaş
- 36
Kod:
[FONT="Tahoma"][COLOR="Red"]TRISC=0
DUTY VAR BYTE
k var byte
BASLA:
pwm PORTB.0,1,50
PORTB.0=0
pwm PORTB.1,55,50
PORTB.1=0
pwm PORTB.2,155,50
PORTB.2=0
pwm PORTB.3,255,50
PORTB.3=0
PAUSE 500
'-----
pwm PORTB.1,1,50
PORTB.1=0
pwm PORTB.2,55,50
PORTB.2=0
pwm PORTB.3,155,50
PORTB.3=0
pwm PORTB.4,255,50
PORTB.4=0
PAUSE 500
'-----
pwm PORTB.2,1,50
PORTB.2=0
pwm PORTB.3,55,50
PORTB.3=0
pwm PORTB.4,155,50
PORTB.4=0
pwm PORTB.5,255,50
PORTB.5=0
PAUSE 500
'-----
pwm PORTB.3,1,50
PORTB.3=0
pwm PORTB.4,55,50
PORTB.4=0
pwm PORTB.5,155,50
PORTB.5=0
pwm PORTB.6,255,50
PORTB.6=0
PAUSE 500
'-----
pwm PORTB.4,1,50
PORTB.4=0
pwm PORTB.5,55,50
PORTB.5=0
pwm PORTB.6,155,50
PORTB.6=0
pwm PORTB.7,255,50
PORTB.7=0
PAUSE 1000
goto basla
end[/COLOR][/FONT]
Kristal frekansım 4 Mhz.