How would you do it?
I've thought of some ways to implement the solution, but as usual, there will always be a more elegant way to do the same.
I have two possible signals coming from a telephone ring detector circuit. When the call is internal, from the PBX system (image), I get 2 packs of 10 pulses separated by a 300ms interval. When the call comes from outside (telephone company) I get a pack with 25 pulses with no interval. Both packs have a total duration of 1s. How to make a ring counter which works for both situations?
I thought about counting, letÂ´s say, 5 pulses, and after a break of more than 500ms count as a valid ring.
Any suggestions on how to do this for the sake of learning?
Any suggestion will be welcomed.