Hi all , after spending every spare moment over the last few weeks reading the forum and googling , I keep going around in circles getting no where. So I have joined the forum in the hope that I can get help .
I am not a total newbie to programming or Arduinos but I am still very unfamiliar .I managed to get Timers working on R3 using direct timer registers and that all made sense to me but this R4 is a whole new ball game .
My intention is to make a phase controller .I have a zero crossing detector that I is working and triggers an interrupt every mains half-cycle crossing . I then wanted to get it to set a timer in one-shot which would trigger another interrupt to set an output pin that will drive the optocoupled TRIAC.( That bit is easy as I've been doing electronics for 40 odd years .) The period of the one-shot is adjustable up to 10mS and sets the phase angle .LOL , all this could be done with some simple electronics , but where's the fun in that .
This is where I have come unstuck .The Timer one library does not seem to work on the R4 and all other topics are referring to FspTimer.h which looks like an absolute nightmare to use .I have looked at the few Topics on here about it . Seen the "under hood" example by Phil shatsman , looked at the posts by gjacobs101 , KurtE and others . a lot of them seem to be about using Timer to generate Periodic rather than one-shots .
Regardless , I have tried copy and paste of their code just to get a starting point but that is where I have discovered that FspTimer.h is not part of the R4 built in library . Nor can I find it in the extensive Library list in my latest version IDE 2.3.5
It has taken me all this time to realize that FspTimer seems to be have written by Reneasas but there is another version FspTimer.h for Arduino . I see references on google to get it from Guthub .I have tried countless times and can't figure it out .Please correct me about any of this.
Sorry about the long winded intro ,I was just trying to give you an understanding of my level of ability and what I had done so far .
I feel I am missing the bleeding obvious . Or if there is another Library that is available that would easily create a one-shot time ,I'm all ears .
Thanks in advance .

