PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : [ERLEDIGT] PIC 16F627A interrupt



Frodo89
08.04.2014, 15:19
Hallo zusammen,

ich hätte da mal ne frage.....

Und zwar hat der PIC 16F627A ja die möglichkeit des "Interrupt on pin change" bei RB4...7 .
Wie ist denn das, wenn ich einen der Pins noch als Ausgang schalten möchte? Löst der interrupt dann auch aus bzw. lässt sich das irgendwo einstellen?

Werde aus dem Datenblatt dabei nicht ganz schlau.
http://ww1.microchip.com/downloads/en/DeviceDoc/40044F.pdf

Danke schon mal für eure Antworten.

Gruß
Frodo

witkatz
08.04.2014, 15:28
DS40044F-page 36:
Only pins configured as inputs can cause this interrupt to occur (i.e., any RB<7:4> pin configured as an output is excluded from the interrupt-on-change comparison). The input pins (of RB<7:4>) are compared with the old value latched on the last read of PORTB.

Frodo89
08.04.2014, 15:32
Ah, alles klar - Danke!!!

Das habe ich nicht gesehen..

Gruß Frodo