r/AskComputerScience • • 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

12 comments sorted by

View all comments

29

u/Thomas12345678901 Jul 04 '21

So basically each bit in the assembler code represents eaither control or data information. The cpu has a control unit, which is basically some and/or/not.... gates. Depending on the instruction, the control unit switches the coresponding transistors on/off. Here is a website that explains this in a bit more detail https://www.howtogeek.com/367931/htg-explains-how-does-a-cpu-actually-work/. I hope i could help you with this.

8

u/Heavy-Suggestion3464 Jul 04 '21

This is that one response that actually helped! Thank you so much for the link!