PIC PORTB on-change Frage

Gast #2042390
Lesenswert?

Hallo

Ich habe mein LCD Display an RB0 bis RB5 gehängt und würde gerne RB6 als 
externen Interrupt nehmen. Geht das mit "Interrupt on Change" oder 
reagiert der Pic auf jeden Flankenwechsel von RB4 bis RB7 auch wenn 
diese als digitale Ausgänge definiert sind?

Vielen Dank im Vorraus.
#2042453
Lesenswert?

Zumindest beim PIC18F2550 steht im Datenblatt:

Four of the PORTB pins (RB7:RB4) have an interrupt on change feature. 
Only pins configured as inputs can cause this interrupt to occur; any 
RB7:RB4 pin configured as an output is excluded from the interrupt on 
change comparison. The pins are compared with the old value latched on 
the last read of PORTB. The “mismatch” outputs of RB7:RB4 are ORed 
together to generate the RB Port Change Interrupt with Flag bit, RBIF 
(INTCON<0>).

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren