r/AskComputerScience • u/Heavy-Suggestion3464 • Jul 04 '21
How does a computer's software interact with transistors to use them as switches?
If I type an A on my computer screen, there's a row of transistors somewhere in my computer's system that represents the binary 01000001. What exactly is switching the state on these transistors?
Every time I Google about this, only explanations on how a transistor works come up.
33
Upvotes
5
u/diogenes08 Jul 04 '21
ASCII and logic gates are what you are looking for.
On a hardware level, the input, say from a mouse, keyboard, network stream, etc, the bit you put in goes into a logic gate(containing a transistor,) and either sends or doesn't, send another bit depending on what the logic says.
On a software level, series of these bits, usually 8, are put into a byte, making 256 possible combinations. ASCII originally, though most current character encoders are still based on it, is a list of characters matched to these bytes.
Everything on the computer is just more and more complex layerings of these.