kod wygląda tak:
Kod: Zaznacz cały
$regfile = "m88def.dat"
$crystal = 8000000
Config Pinc.4 = Input
Config Pinb.0 = Output
Set Portc.4
On Pcint1 Czekaj
Enable Interrupts
Enable Pcint1
Do
Set Portb.0
Waitms 10
Reset Portb.0
Waitms 10
Loop
Czekaj:
Wait 1
Return
Problem rozwiązany - należało ustawić bity rejestru PCMSK1