Question 1 Report
(a) Complete the table showing the properties of different register sizes for unsigned integers.
| Register size | Maximum unsigned denary value | Number of different values |
|---|---|---|
| 8-bit | ||
| 16-bit | ||
| 32-bit |
[6]
(b) A sensor reading returns a value of 50000. State the minimum register size from the table that could store this value as an unsigned integer. Explain your answer.
[2]
(a)
| Register size | Maximum unsigned denary value | Number of different values |
|---|---|---|
| 8-bit | 255 | 256 |
| 16-bit | 65535 | 65536 |
| 32-bit | 4,294,967,295 | 4,294,967,296 |
The pattern follows the formula: maximum value = \(2^n - 1\) and number of different values = \(2^n\), where n is the register size in bits. [6]
(b) The minimum register size is 16-bit. [1] An 8-bit register can store a maximum of 255, which is far less than 50000. A 16-bit register can store up to 65535, which is greater than 50000, so it is the smallest register from the table that can hold this value. [1]
Everything you need to excel in your exams