132 : TIMER0 reload could not be calculated [ 0]
46 : Assignment error [reload: 0 10: 112]
Nie wiem dlaczego tak się dzieje. Ma to pracować na wewnętrznym oscylatorze 9,6MHz.
Oto kod programu:
Kod: Zaznacz cały
$regfile "attiny13.dat"
$crystal = 9600000
Config Pinb.0 = Output
Config Pinb.1 = Output
Config Pinb.2 = Input
Config Pinb.3 = Input
Config Pinb.4 = Input
Config Servos = 1 , Servo1 = Portb.0
Reload = 10
Enable Interrupts
Do
If Pinb.2 = 0 Then
Servo1 = 170
End If
loop
Kod: Zaznacz cały
$regfile "attiny13.dat"
$crystal = 9600000
Config Pinb.0 = Output
Config Pinb.1 = Output
Config Pinb.2 = Input
Config Pinb.3 = Input
Config Pinb.4 = Input
Config Servos = 1 , Servo1 = Portb.0 , Reload = 10
Enable Interrupts
Do
If Pinb.2 = 0 Then
Servo(1) = 100
End If
Loop
Pozdrawiam Spanner