...yes self toggling switch would be an accurate picture but not the most important part it could also be driven like a transistor. ...also you are correct about the box and the on and off thing that you mentioned. That was the way I was looking at it.
Good, that gives me something more concrete to work with.
This "black box" approach is useful for describing a conceptualized device - just treat it as so many wires in and so many wires out and what an external meter is going to read in different circumstances.
Its best to start from the simplest form of a concept before developing it.
The basic abstract circuit diagram, therefore, would be a DC voltage source V in series with a small resistance r (this would represent the various internal resistances for non-ideal components) and a box representing our device.
An ammeter anywhere in the circuit would register a square wave - i(t)=V/r : 0<t<T/2, i(t)=0: T/2<t< T ... repeats.
Variations for exact implementation - but that's basically it.
Notice that in this idealization, the voltage across the
device will also be a square-wave as v(t)=r.i(t)
The question you are asking, therefore, becomes:
- what solid-state circuit can we put in the box to do that?
The answer is: there are many. You should be able to figure out a few after perusing a semiconductor reference. I still think an oscillator circuit can be made to do that, or a flip-flop. In fact, I seem to remember that a "periodically toggled switch" is one of the example circuits in the Radioshack Engineer's Notebook ... maybe even the Semiconductor Cookbook. iirc it involves a 555 timer.
An obvious modification to the box would be to add another, 3-state, input.
State 1: the switch if forced open
State 2: the switch is forced closed
State 3: the switch toggles
The toggling may be random, periodic - maybe with a programmable period, or some other function... but you'd need more input pins for that. The simplest design that fits your description and the ensuing discussion is as above.
(Note - changing the resistance to a reactance, to account for stray capacitances or inductances, will round off the corners of the square wave, so I didn't worry about it to start with.)