Skip to content

Atmega128 interrupt 2 , 3 not working #217

Open
@alexpadoras

Description

@alexpadoras

Hi

In ATmega128, when I connect my input signal to interrupts 0 and 1, it works correctly, but when I connect it to interrupts 2 and 3, it does not work correctly. What is the problem?"

`
void setup() {
pinMode(2, INPUT); //
pinMode(3, INPUT); //
pinMode(18, INPUT); //
pinMode(19, INPUT); //

 attachInterrupt(digitalPinToInterrupt(2), ISR_0, CHANGE); // 
 attachInterrupt(digitalPinToInterrupt(3), ISR_1, CHANGE); // 
 attachInterrupt(digitalPinToInterrupt(18), ISR_2, CHANGE); // 
 attachInterrupt(digitalPinToInterrupt(19), ISR_3, CHANGE); // 

}
`

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions