Skip to content

Ahmad Ali Ahmad Othman - Section 1 - Sheet 1

1. Which of the following are analog quantities, and which are digital?

  1. Number of atoms in a sample of material -> Digital
  2. Altitude of an aircraft -> Analog
  3. Pressure in a bicycle tire -> Analog
  4. Current through a speaker -> Analog
  5. Timer setting on a microwave oven -> Digital

2. Which of the following are analog quantities, and which are digital?

  1. Width of a piece of lumber -> Analog
  2. The amount of time before the oven buzzer goes off -> Analog
  3. The time of day displayed on a quartz watch -> Display
  4. Altitude above sea level measured on a staircase -> Digital
  5. Altitude above sea level measured on a ramp -> Analog

3. Convert the following binary numbers to their equivalent decimal values:

A. 110012

110012=124+123+022+021+120 =16+8+0+0+1=2510




B. 1001.10012

1001.10012=123+022+021+120+121+022+023+124 =8+0+0+1+0.5000+0+0+0.0625=9.562510

C. 01 00 11 01 10 01.10 11 002

010011011001.101102=1210+029+028+127+126+025+124+123+ 022+021+120+121+022+123+124+025+026 =1024+0+0+128+64+0+16+8+0+0+1+ 0.500000+0+0.125000+0.062500+0+0=1241.687510

4. Convert the following binary numbers to decimal.

A. 1001122

100112=124+023+022+121+120 =16+0+0+2+1=1910

(b) 1100.01012

1100.01012=123+122+021+020+021+122+023+124 =8+4+0+0+0+0.2500+0+0.0625=12.312510

C. 01 00 11 10 01 00.10 01 002

10011100100.100102=1210+029+028+127+126+125+024+023+122+021+020+121+022+023+124+025 =1024+0+0+128+64+32+0+0+4+0+0+0.5000+0+0+0.0625+0=1252.562510

5. Using three bits, show the binary counting sequence from 000 to 111.

DecimalBinary
0000
1001
2010
3011
4100
5101
6110
7111

6. Using six bits, show the binary counting sequence from 000000 to 111111.

DecimalBinaryDecimalBinary
000000032100000
100000133100001
200001034100010
300001135100011
400010036100100
500010137100101
600011038100110
700011139100111
800100040101000
900100141101001
1000101042101010
1100101143101011
1200110044101100
1300110145101101
1400111046101110
1500111147101111
1601000048110000
1701000149110001
1801001050110010
1901001151110011
2001010052110100
2101010153110101
2201011054110110
2301011155110111
2401100056111000
2501100157111001
2601101058111010
2701101159111011
2801110060111100
2901110161111101
3001111062111110
3101111163111111

7. What is the maximum number that we can count up to using 10 bits?

General rule: 2bits1

2101=1023



8. What is the maximum number that we can count up to using 14 bits?

2141=16383

9. How many bits are needed to count up to a maximum of 511?

General rule: log2(max) -> Ceil the log2 of the maximum.

2n1=511, 2n=512, n=9 or log2(512)=9

10. How many bits are needed to count up to a maximum of 63?

2n1=63, 2n=64, n=6 or log2(64)=6

11. Draw the timing diagram for a digital signal that continuously alternates between 0.2 V (binary 0) for 2 ms and 4.4 V (binary 1) for 4 ms.

12. Draw the timing diagram for a signal that alternates between 0.3 V (binary 0) for 5 ms and 3.9 V (binary 1) for 2 ms.

13. Suppose that the decimal integer values from 0 to 15 are to be transmitted in binary.

  1. Numbers 0 to 15 are represented by 4 bits (24=16).
  2. How many lines will be needed if parallel representation is used?
    • Parallel representation sends all bits simultaneously (at the same time), each on its own separate line.
    • That means it would use 4 Lines.
  3. How many will be needed if serial representation is used?
    • Serial representation sends all bits sequentially one after the other, using a single line.
    • It would use 1 Line.

14. How is a microprocessor different from a microcomputer?

Microprocessor

  • A microprocessor is a single processor core that fetches, decodes, and executes instructions.
  • It requires external memory (ROM/RAM), a memory decoder, an oscillator, and I/O ports to form a complete microcomputer.
  • Handles arithmetic, logic, and control operations — cannot operate alone.

Microcomputer

  • A complete computer system built around a microprocessor.
  • Consists of the microprocessor + memory (RAM/ROM) + I/O ports + storage + power supply, etc.
  • Fully functional — capable of running programs and performing tasks independently.

15. How is a microcontroller different from a microcomputer?

Microcontroller

  • A microcontroller is a compact system-on-chip (SoC) with an integrated CPU, memory (RAM, ROM), and programmable I/O peripherals, designed for specific tasks.
  • Used for dedicated control tasks in embedded systems (e.g., washing machines, sensors, robotics).
  • Optimized for control and efficiency, not high-speed computing.

Microcomputer

  • A complete general-purpose computing system that may use a microprocessor or microcontroller as its CPU.
  • Used for general-purpose computing (e.g., personal computers, workstations).
  • Optimized for flexibility and processing power.