library for easy management interrupts

Hi!
With Arduino complicated things become simple.
We have moved from the assembler

But it did not affect interrupts and timers.
We continue to work with registers and bit-mask.
It`s not easy for junior.

Is there a library that helps in configuring interrupts and timers ?

library attachInterrupt() is not enough for the project.

Why is attachInterrupt() not enough? What is it missing that you need?

Anyway, you can have a look at GitHub - GreyGnome/EnableInterrupt: New Arduino interrupt library, designed for Arduino Uno/Mega 2560/Leonardo/Due.

attachInterrupt() work with external interrupts and not work with internal interrupts. attachInterrupt() - Arduino Reference

But I need work with internal interrupts.

See the library I linked, then!

Thank You! I saw)))
Your link work ONLY with external interrupts. Usage · GreyGnome/EnableInterrupt Wiki · GitHub
But I need work with internal.

saer:
But I need work with internal.

What do you mean by internal interrupts?

Nick, I glad to see You!
My first steps in Interrupt_world was mak with help your forum.

External interrupts? - I mean:
2 External Interrupt Request 0 (pin D2) (INT0_vect)
3 External Interrupt Request 1 (pin D3) (INT1_vect)
4 Pin Change Interrupt Request 0 (pins D8 to D13) (PCINT0_vect)
5 Pin Change Interrupt Request 1 (pins A0 to A5) (PCINT1_vect)
6 Pin Change Interrupt Request 2 (pins D0 to D7) (PCINT2_vect)
Internal interrupts? -I mean 7 and further.

I can repeat your example. Can modified it.
But I can`t cerate new.

Arduino.IDE is very easy to lern and understund. Because IDE use high-level programming language.

Work with interrupts and timer use register and bit-operators. It is not easy to lern.

Another problem: what can work on DUE - not work on UNO and backwards.

So I find library, which will to manage timer_register and interrupts_register on all arduino plate.
I will have one programm to all arduino plare....

With Arduino complicated things become simple.
We have moved from the assembler [/quote]

Oh crap! That happened in the 1950's

We continue to work with registers and bit-mask.

If you don't like it don't use microcontrollers!

Another problem: what can work on DUE - not work on UNO and backwards.

Of course not they use totally different processors.

Mark

holmes4, cool that you can work on assembler! You don`t need Arduino, because it is very easy )))
And now is not the 1950's !))) ENIAC was cool 60 years ago!! with its assembler!
today we have Arduino, which can difficult make easy.

If You like assembler - ok!
I like Wiring, and I don`t like assembler. That is no reason for dispute

Is there a library that helps in configuring interrupts and timers ?

I think if you need a specific timer interrupt like overflow or compare match etc… it should be quite easy to write a simple library for your self , just look at the data sheet for the timer you want to use and the vector table for corresponding interrupt.

Interrupt vector table : pg65 of the data sheet for 328P

As far as portability goes there will have to be some extra abstraction in a library for it to work across the board.