Книга: Introduction to Microprocessors and Microcontrollers
2. Binary – the way micros count
2. Binary – the way micros count
Unlike us, microprocessors have not grown up with the idea that 10 is a convenient number of digits to use. We have taken it so much for granted that we have even used the word digit to mean both a finger and a number.
Microprocessors and other digital circuits use only two digits – 0 and 1 – but why? Ideally, we would like our microprocessors to do everything at infinite speed and never make a mistake. Error free or high speed – which would you feel is the more important?
It’s your choice but I would go for error free every time, particularly when driving my car with its engine management computer or when coming in to land in a fly-by-wire aircraft. I think most people would agree.
So let’s start by having a look at one effect of persuading microprocessors to count in our way.
- The noise problem
- A complete cure for electrical noise
- Thermal noise
- Partition noise
- How much noise can we put up with?
- Using just two digits
- How do we count?
- The basic basis of bases
- Counting with only two figures
- Confusion and the cure
- Converting denary to binary
- Converting binary to denary
- Bits, bytes and other things
- Quiz time 2
- Shadow count
- 4.4.4 The Dispatcher
- SEMAPHORE COUNT
- About the author
- Chapter 7. The state machine
- Appendix E. Other resources and links
- Example NAT machine in theory
- The final stage of our NAT machine
- Compiling the user-land applications
- The conntrack entries
- Untracked connections and the raw table
- Basics of the iptables command