16f84 controller

Discussion in 'Homework Help' started by HSMBELE, May 13, 2010.

  1. HSMBELE

    Thread Starter New Member

    Apr 7, 2010
    6
    0
    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?
     
  2. SgtWookie

    Expert

    Jul 17, 2007
    22,182
    1,728
  3. Markd77

    Senior Member

    Sep 7, 2009
    2,803
    594
    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.

    [​IMG]
     
    HSMBELE likes this.
Loading...