“I was thinking of counting the clock cycles up untill the UGN3503 created an interrupt.”
That sounds like the Pic way to do it, but not the Picaxe way
Look manual 2, page 42, COUNT command. It count’s the number of events in a specified time interval.
If the RPM is too low for good results using COUNT, then use more magnets, or use the PULSIN command, manual 2, page 135. It measures the time interval between two events.
Both should be capable of doing what you want with no interrupts required.
Both COUNT and PULSIN are ‘blocking commands’. That is, the processing stops on that command until the timeout or the trigger. So while the command is making its measurement, no other processing can take place, EG button testing or whatever.
You can partially compensate for this using short timeouts, like using several magnets. EG, 1 magnet, 60 RPM = 1 event per second. To get a reasonably accurate result using COUNT, would require the COUNT command to be counting (blocking) for say maybe 10 seconds at a time. For two magnets, 5 seconds, for 5 magnets, 2 seconds etc.
PULSIN however would only need 1 second to count 1 rev with 1 magnet @ 60 RPM, and would only be blocking for 1 second. Less for higher RPM, but it begins to lose accuracy at higher RPMs.
So what range of RPM are you expecting to measure? Max,Min,Nom.