@WOZZY-2010 yes plenty that can be added.
Hardest part would be getting a fuel top up :-)
OK so still no replies regarding a simple IS PULSE EXISTS command ?
I can easily detect zero-crossing but need to know how to check for th
I was thinking of just checking for an absolute minimum pulse using PULSIN or use COUNT since AC has a 50% duty cycle and I would be checking a frequency of 50Hz or 60Hz but how do I set the period to be infinite ?
Using this approach I could say something like WHILE COUNT_VAR > 1
So here are the questions ?
1. Can COUNT period be set to inifinity ?
2. Can COUNT be set to a tight loop to count mains pulses so a variable always stays high so that I could say something like IF COUNT >1 THEN AC EXISTS ?
3. If I used and interrupt on change for every zero-crossing could the interrupt be checked ..something like if interrupt exists then ... or if no interrupt exists then ...
Any thoughts/ideas are welcome ?
Kind regards
Dennis
Bookmarks