• AVR Freaks

Hot!Harmony V3 : Change notification interrupt

Author
yts
Super Member
  • Total Posts : 601
  • Reward points : 0
  • Joined: 2005/09/06 17:45:30
  • Status: offline
2019/08/02 14:15:37 (permalink)
0

Harmony V3 : Change notification interrupt

Environment:
Harmony V3 (core v3.4.0, csp v3.4.0)
PIC32MX270F256B-50I/SP

I would like to realize the change notification interrupt on PIC32MX270F256B-50I/SP, but the interrupt function is never called.
Harmony configuration settings are shown in the attached figures.
The #17 pin (RB8) is weakly pulled up and is used for the interrupt pin. .

The interrupt function is defined in the interrupts.c;

void __ISR(_CHANGE_NOTICE_VECTOR, ipl1AUTO) CHANGE_NOTICE_Handler (void)
{
    CHANGE_NOTICE_InterruptHandler();
}


I call the function “EVIC_SourceEnable” to enable the interrupt in app.c;


void APP_Initialize ( void )
{
    appData.state = APP_STATE_INIT;
    EVIC_SourceEnable(INT_SOURCE_CHANGE_NOTICE_B);
}


I wander what is wrong.
Any suggestion is appreciated

setting1.jpg: pin assignment
setting2.jpg: project graph
setting3.jpg: configuration options for Core component
setting4.jpg: configuration options for System component

Attached Image(s)

#1

1 Reply Related Threads

    yts
    Super Member
    • Total Posts : 601
    • Reward points : 0
    • Joined: 2005/09/06 17:45:30
    • Status: offline
    Re: Harmony V3 : Change notification interrupt 2019/08/08 01:44:14 (permalink)
    0
    I find the solution.
     

    void APP_Initialize ( void )
    {
        /* Place the App state machine in its initial state. */
        appData.state = APP_STATE_INIT;
        GPIO_PortInterruptEnable(GPIO_PORT_B, 0x80);
    }

    #2
    Jump to:
    © 2019 APG vNext Commercial Version 4.5