It is set up so when it is above 5V it is a 1. If it is below for example 1.5V it is a 0. In between 1.5V and 5V it is an invalid state. This is how CMOS work and a chip which holds some gates is feeding the input of the gates whatever the CMOS translates to it, either 1 or 0.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.