Forum: Mikrocontroller und Digitale Elektronik Interrupt mega163


von Bernhard (Gast)


Lesenswert?

Hallo,

habe eine PC-Tastatur an einem At90S2313 laufen und setzte gerade das
Programm auf einen mega163. Hier sind Vectoradressen nicht mehr ein
Byte groß sondern zwei. Das Programm läuft, Wie muss der Programmkopf
für den Sprung ins Interrupt Programm aussehen verwende INTF1.

rjmp start

reti
rjmp int1
....

start:
  ldi temp, 0b00001000  ; INT1 konfigurieren Takt Tastatur
  out MCUCR, temp
  ldi temp, 0b10000000  ; INT1 und INT0 aktivieren
  out GIMSK, temp

von Bernhard (Gast)


Lesenswert?

Sorry Return erwischt,

  sei

loop:
rcall test
rjmp loop

int1:
...
reti

Programm durchläuft nicht das Programm Test obwohl high an Int1.

Danke schon mal für Eure hilfe und

Gruß Bernhard

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.