Doch

.....ich habe mal ChatGPT Gefragt .... der kam direkt mit einem Schaltplan mit Logic Bausteinen .... Der Schaltpaln wird aber unleserlich, wenn man ihr hier rein kopiert. Kriegst Du bestimmt selber hin, wenn Du in die Richtung willst.
[FONT=Söhne]To create a bistable logic circuit with just one switch (taster) that toggles between two states, we can use a D flip-flop. Here's a schematic using a D flip-flop:[/FONT]
[COLOR=var(--text-secondary)][FONT=Söhne]lua
Copy code[/FONT][/COLOR]
+[COLOR=rgba(255, 255, 255, 0.5)]-------------------------------------+[/COLOR]
| |
| |
+[COLOR=rgba(255, 255, 255, 0.5)]-----|------+ +----|-----+[/COLOR]
| | | +[COLOR=rgba(255, 255, 255, 0.5)]----------------+ | | |[/COLOR]
| | +[COLOR=rgba(255, 255, 255, 0.5)]----| D Flip-Flop |---+ | |[/COLOR]
| | | | | |
| | +[COLOR=rgba(255, 255, 255, 0.5)]------| Q |<-------+ |[/COLOR]
| | | | | |
| | | +[COLOR=rgba(255, 255, 255, 0.5)]----------------+ |[/COLOR]
| | | |
| | | +[COLOR=rgba(255, 255, 255, 0.5)]----------------+ |[/COLOR]
| | +[COLOR=rgba(255, 255, 255, 0.5)]------| Q' |-------------+[/COLOR]
| | | |
| | +[COLOR=rgba(255, 255, 255, 0.5)]----------------+[/COLOR]
| |
| |
| |
| |
| |
| |
+[COLOR=rgba(255, 255, 255, 0.5)]-----+[/COLOR]
[FONT=Söhne]In this schematic:[/FONT]
- D is the data input.
- Q is the output.
- Q' is the complement of the output.
[FONT=Söhne]Here's how it works:[/FONT]
- Initially, both Q and Q' are at a known state, typically 0.
- When you press the switch (taster), it toggles the input D.
- The flip-flop's output Q will change to match the input D on the rising edge of the clock signal (which we assume to be present). If D is high, Q becomes high; if D is low, Q becomes low.
- Q' will be the complement of Q, representing the opposite state.
[FONT=Söhne]This way, with just one switch, you can toggle between the two states represented by the output Q.[/FONT]