16f84 controller

Thread Starter

HSMBELE

Joined Apr 7, 2010
6
With respect to interrupts what is the importance of:
1. Interrupt flags
2. Context saving

what is the meaning of the instruction ' Rlf or just rotate, what does it do?
 

Markd77

Joined Sep 7, 2009
2,806
Interrupt flags are for setting which conditions cause an interrupt and also telling you which one has happened.
Context saving is so that if the code in the interrupt affects W and STATUS that they will be restored after the interrupt.

All the bits just move one to the left through carry. You can use it to multiply or divide by powers of 2.

 

Attachments

Top