This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

routine interrupt iar n2het .

Other Parts Discussed in Thread: HALCOGEN

hi ti's experts and thanks for answering questions . 

how can i write routine of n2het interrupt ??

where is routine interrupt of n2het ?? 

interrupt is enable for all instruction of n2het program and interrupt created with flag but where is routine interrupt ??? i use halcogen and iar .

thanks for your attention . 

  • The N2HET1 interrupt service routine is in the het1LowLevelInterrupt function, which is defined in the het.c file. This function would be named het1HighLevelInterrupt if you enabled the high-level interrupt from N2HET1.

    This function clears the interrupt flag and then calls another function called pwmNotification or edgeNotification depending on the condition selected to generate the interrupt. These two functions are defined in the notification.c file.

    Note that you do need to enable interrupts in the CPU as well as the N2HET1 and the VIM.