Stránka 2 z 2

Napsal: 10 čer 2012, 21:56
od Andrea
A co je na té instrukci špatně?

Napsal: 11 čer 2012, 00:04
od procesor
Lebo...RAIF nie je KO, ale výstup kombinačného obvodu (pri RBIF je to inak). Asi, že na tú inštrukciu program nezblbne.

Napsal: 11 čer 2012, 11:09
od Andrea
Takže podle tebe v datašítu kecají a ta instrukce je tam zbytečná?

Kód: Vybrat vše

For enabled interrupt-on-change pins, the values are
compared with the old value latched on the last read of
PORTA. The ‘mismatch’ outputs of the last read are
OR'd together to set,  the PORTA Change Interrupt flag
bit (RAIF) in the INTCON register.

This interrupt can wake the device from SLEEP. The
user, in the Interrupt Service Routine, can clear the
interrupt in the following manner:
a)Any read or write of PORTA. This will end the
mismatch condition.
b)Clear the flag bit RAIF.
A mismatch condition will continue to set flag bit RAIF.
Reading PORTA will end the mismatch condition and
allow flag bit RAIF to be cleared.

Napsal: 11 čer 2012, 18:40
od procesor
Po toto som sa nedostal, schéma v datasheet-e označuje "mišmaš" signál ako RAIF :oops: