$regfile = "attiny13a.dat"
$crystal = 1000000
$hwstack = 8
$swstack = 4
$framesize = 4
Dim I As Byte
Dim D As Byte
Config Portb.0 = Output
Config Timer0 = Pwm , Prescale = 1 , Compare A Pwm = Clear Down
Do
Restore Dta0
For I = 1 To 16
Read D
Pwm0a = D
Waitms 50
Next I
Loop
End
Dta0:
Data 255, 250, 245, 230,215,195,150,100, 40
Data 100, 150, 195, 215, 230, 245, 250
沒有留言:
張貼留言