3

It's possible use external interrupts/attachInterrupt() with the ATtiny85 when I program with Arduino IDE?

If is possible, how many inputs (for external interrupts) the ATtiny85 have and which are they? Someone have an example code?

asked Mar 25, 2020 at 16:04
3
  • 1
    The ATTINY 85 doesn't have external interrupts. You'll have to use pin change interrupts instead. Commented Mar 25, 2020 at 16:15
  • 2
    Except... PB2 has INT0... Commented Mar 25, 2020 at 16:28
  • Darnit. I just looked at the spec sheet and didn't see one listed. Commented Mar 25, 2020 at 18:34

1 Answer 1

2

Pin PB2 is the only pin that has a real external interrupt. This is INT0.

Whether you can use attachInterrupt(0, ...) or not is entirely down to whether it is implemented in the core that you are using.

answered Mar 25, 2020 at 16:29

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.