Instructions

278Libraries
© 2013 Conrad Electronic
INT_4
external Interrupt 4
INT_5
external Interrupt 5
INT_6
external Interrupt 6
INT_7
external Interrupt 7
INT_ADC
ADC
INT_100Hz
100 Hz Interrupt
INT_TIMER0
Timer 0
INT_TIMER1
Timer 1
INT_TIMER2
Timer 2
INT_TIMER3
Timer 3
INT_TIMER4
Timer 4
INT_TIMER5
Timer 5
INT_CAN
CAN
The corresponding interrupt has to receive the corresponding instructions in an Interrupt Service
Routine (ISR) and also the interrupt has to be enabled. See Example. During execution of the interrupt
routine the Multi Threading is suspended.
5.13.1 Ext_IntEnable
Interrupt Functions
Syntax
void Ext_IntEnable(byte IRQ, byte Mode);
Sub Ext_IntEnable(IRQ As Byte, Mode As Byte)
Description
This function enables the external Interrupt IRQ. The Mode parameter defines when to trigger the interrupt.
The parameter IRQ has a numeric value. Not to be confused with the #defines of parameter irqno in
function Irq_SetVect().
Parameter
IRQ number of the interrupt to be enabled Mega32 (0-2) , Mega128 (0-7) , AVR32 (1-7)
Mode parameter:
0: a low level triggers the interrupt
1: every changing edge triggers the interrupt
2: a falling edge triggers the interrupt
3: a rising edge triggers the interrupt
A signal on Mega32:IRQ 0 or Mega128:IRQ 4 at power up time can lead to Autostart problems.
Mode parameter only for Mega32 and IRQ2: