Hi I was using a internal interrupt service routine that was triggered by a timer on a Uno R3.
I used this to create a ramp for a PWM pin, however since the R4 Minima has a DAC this is better suited for my project, however the CPU has changed and there is not a lot of info regarding this on the web, I had a look at the timers on this page: Under the Hood: Arduino UNO R4 - Timers - Phil Schatzmann
however I would prefer to use the AGT timers in conjunction with the internal interrupt service routine in this case.
biggest problem is that I can't seem to find anything regarding Internal interrupt service routines on the R4 Minima