Menu

interrupt high/low 18f2620

Help
2015-01-17
2015-01-19
  • alejandro1957

    alejandro1957 - 2015-01-17

    Now we enter the heart.
    I would like to learn how to configure the program to handle interrupts high/low(IPEN=1;GIEH=1;GIEL1).
    for now use compatible mode (IPEN=0;GIE=1)
    I know,according to the datasheet,which ISR_High is at memory address 0x08 and 0x18 to ISR_Low
    how do I configure it to take advantage of these interrupt

     
  • alejandro1957

    alejandro1957 - 2015-01-19

    reading the product description does not seem so difficult.
    if I understand it:
    set IPEN GIEH GIEL
    set where/which interrupts you must be enabled.
    if these will be set high/low
    in the program to determine the ISR_high and ISR_low
    example:
    void ISR_HIGH_xxx(void) interrupt 1 // address to 0x08.priorità high
    void ISR_LOW_xxx(void) interrupt 2 // address to 0x18.priorità low

    and then to look for what we are interested in these registers.

    I do wrong?

     

Log in to post a comment.