Lite / Building Machines That Respond / Week 17
Week 17: Binary arithmetic
This week you will
- Convert between decimal, binary and hexadecimal.
- Add binary numbers by hand and with a ripple-carry adder.
- Represent negatives in two's complement and identify overflow in a fixed number of bits.
Lessons
- Binary and hexadecimal · about 30 min
A sensor datasheet says its ID register reads 0x6B. What number is that, and why would anyone write it that way? - Multi-bit addition and the ripple-carry adder · about 35 min
Adding 0111 + 0001 changes every single bit of the answer. How long does a circuit have to wait before it can trust the result? - Overflow and negative numbers · about 35 min
In a 4-bit computer, 7 + 1 = −8. That is not a bug in the adder. So what is going on?