Forum: Mikrocontroller und Digitale Elektronik PIC PORTB on-change Frage


von StarTron (Gast)


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.

von yxz (Gast)


Lesenswert?

Zum Glück gibt es ja nur einen Pic.
Um welchen geht es denn hier ?

von Dieter W. (dds5)


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>).

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.